| java.lang.Object org.apache.ojb.broker.util.WrappedConnection
All known Subclasses: org.apache.ojb.broker.util.batch.BatchConnection, org.apache.ojb.broker.util.pooling.ByPassConnection,
WrappedConnection | public class WrappedConnection implements Connection(Code) | | Wrapper class for connections.
Simplified version of
org.apache.commons.dbcp.DelegatingConnection |
Method Summary | |
public void | activateConnection() | protected void | checkOpen() | public void | clearWarnings() | public void | close() Closes the underlying connection, and close
any Statements that were not explicitly closed. | public void | commit() | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public boolean | getAutoCommit() | public String | getCatalog() | public Connection | getDelegate() Returns my underlying
Connection . | public int | getHoldability() | public Connection | getInnermostDelegate() If my underlying Connection is not a
WrappedConnection, returns it,
otherwise recursively invokes this method on
my delegate. | public DatabaseMetaData | getMetaData() | public int | getTransactionIsolation() | public Map | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isReadOnly() | public String | nativeSQL(String sql) | public void | passivateConnection() | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public PreparedStatement | prepareStatement(String sql, int columnIndexes) | public PreparedStatement | prepareStatement(String sql, String columnNames) | public void | releaseSavepoint(java.sql.Savepoint savepoint) | public void | rollback() | public void | rollback(java.sql.Savepoint savepoint) | public void | setAutoCommit(boolean autoCommit) | public void | setCatalog(String catalog) | public void | setDelegate(Connection c) Sets my delegate. | public void | setHoldability(int holdability) | public void | setReadOnly(boolean readOnly) | public java.sql.Savepoint | setSavepoint() | public java.sql.Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map map) | public String | toString() |
activateConnection | public void activateConnection()(Code) | | Activate the connection
|
close | public void close() throws SQLException(Code) | | Closes the underlying connection, and close
any Statements that were not explicitly closed.
|
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
getInnermostDelegate | public Connection getInnermostDelegate()(Code) | | If my underlying Connection is not a
WrappedConnection, returns it,
otherwise recursively invokes this method on
my delegate.
Hence this method will return the first
delegate that is not a WrappedConnection,
or null when no non-WrappedConnection
delegate can be found by transversing this chain.
This method is useful when you may have nested
WrappedConnections, and you want to make
sure to obtain a "genuine"
java.sql.Connection .
|
passivateConnection | public void passivateConnection() throws SQLException(Code) | | Passivate the connection
|
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|