| org.ofbiz.minerva.pool.jdbc.ConnectionWrapper
All known Subclasses: org.ofbiz.minerva.pool.jdbc.ConnectionInPool, org.ofbiz.minerva.pool.jdbc.xa.wrapper.XAClientConnection,
ConnectionWrapper | public interface ConnectionWrapper extends Connection(Code) | | 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.
See Also: javax.sql.XAConnection author: Aaron Mulder (ammulder@alumni.princeton.edu) |
Method Summary | |
public void | setError(SQLException e) Indicates to the connection that an error occured. | public void | setLastUsed() Sets the time this connection (or a statement or result set derived from
it) was used. | public void | statementClosed(Statement st) Indicates that a statement derived from this connection was closed. |
setError | public void setError(SQLException e)(Code) | | Indicates to the connection that an error occured. This is typically
used by statements and result sets derived from this connection.
|
setLastUsed | public void setLastUsed()(Code) | | Sets the time this connection (or a statement or result set derived from
it) was used.
|
statementClosed | public void statementClosed(Statement st)(Code) | | Indicates that a statement derived from this connection was closed.
Statements are tracked so that any open statements can be closed when
the connection is closed (or reused in a pool).
|
|
|