|
||||||||||
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, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDelegate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, 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.CallableStatement |
---|
getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setByte, setBytes, setCharacterStream, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, wasNull |
Methods inherited from interface java.sql.PreparedStatement |
---|
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
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 |