|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.dbcp.AbandonedTrace org.apache.commons.dbcp.DelegatingStatement org.apache.commons.dbcp.DelegatingPreparedStatement org.apache.commons.dbcp.DelegatingCallableStatement org.apache.commons.dbcp.PoolableCallableStatement
public class PoolableCallableStatement
A DelegatingCallableStatement
that cooperates with
PoolingConnection
to implement a pool of CallableStatement
s.
The close()
method returns this statement to its containing pool. (See PoolingConnection
.)
PoolingConnection
Field Summary |
---|
Fields inherited from class org.apache.commons.dbcp.DelegatingStatement |
---|
_closed, _conn, _stmt |
Fields inherited from interface java.sql.Statement |
---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary | |
---|---|
PoolableCallableStatement(CallableStatement stmt,
Object key,
KeyedObjectPool pool,
Connection conn)
Constructor. |
Method Summary | |
---|---|
protected void |
activate()
Activates after retrieval from the pool. |
void |
close()
Returns the CallableStatement to the pool. |
protected void |
passivate()
Passivates to prepare for return to the pool. |
Methods inherited from class org.apache.commons.dbcp.DelegatingPreparedStatement |
---|
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDelegate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toString |
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace |
---|
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.PreparedStatement |
---|
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Constructor Detail |
---|
public PoolableCallableStatement(CallableStatement stmt, Object key, KeyedObjectPool pool, Connection conn)
stmt
- the underlying CallableStatement
key
- the key for this statement in the KeyedObjectPool
pool
- the KeyedObjectPool
from which this CallableStatement was obtainedconn
- the Connection
that created this CallableStatementMethod Detail |
---|
public void close() throws SQLException
DelegatingStatement.isClosed()
, this is a No-op.
close
in interface Statement
close
in class DelegatingStatement
SQLException
protected void activate() throws SQLException
activate
in class DelegatingStatement
SQLException
protected void passivate() throws SQLException
passivate
in class DelegatingStatement
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |