|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Wrapper for database connections. Tracks open statements, last used time, and records errors. In practice, this is used both as a wrapper for connections in a pool and as a wrapper for connections handed out by an XAConnection.
XAConnection
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Method Summary | |
void |
setError(java.sql.SQLException e)
Indicates to the connection that an error occured. |
void |
setLastUsed()
Sets the time this connection (or a statement or result set derived from it) was used. |
void |
statementClosed(java.sql.Statement st)
Indicates that a statement derived from this connection was closed. |
Methods inherited from interface java.sql.Connection |
clearWarnings, close, commit, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareStatement, prepareStatement, rollback, setAutoCommit, setCatalog, setReadOnly, setTransactionIsolation, setTypeMap |
Method Detail |
public void setLastUsed()
public void setError(java.sql.SQLException e)
public void statementClosed(java.sql.Statement st)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |