December 2000
Intermediate to advanced
574 pages
17h 3m
English
ConnectionWrapper
|
Class Name: |
com.ora.jsp.sql.ConnectionWrapper |
|
Extends: |
None |
|
Implements: |
java.sql.Connection |
This class is a wrapper around a Connection, with
a close( ) method that informs its
DataSourceWrapper that it’s available for
reuse again, and an isClosed( ) method to return
the state of the wrapper instead of the wrapped
Connection. All other methods just relay the call
to the wrapped Connection.
public class ConnectionWrapper implements java.sql.Connection { // Constructor public ConnectionWrapper(Connection realConn, DataSourceWrapper dsw); // Methods public void close( ) throws SQLException; public boolean isClosed( ) throws SQLException; // Wrapped methods public void clearWarnings( ) throws SQLException; public void commit( ) throws SQLException; public Statement createStatement( ) throws SQLException; public boolean getAutoCommit( ) throws SQLException; public String getCatalog( ) throws SQLException; public DatabaseMetaData getMetaData( ) throws SQLException; public int getTransactionIsolation( ) throws SQLException; public SQLWarning getWarnings( ) throws SQLException; public boolean isReadOnly( ) throws SQLException; public String nativeSQL(String sql) throws SQLException; public CallableStatement prepareCall(String sql) throws SQLException; public PreparedStatement prepareStatement(String sql) throws SQLException; public void rollback( ) throws SQLException; public void setAutoCommit(boolean autoCommit) throws SQLException; ...Read now
Unlock full access