Name
ConnectionWrapper
Synopsis
Class Name: |
com.ora.jsp.sql.ConnectionWrapper |
Extends: |
None |
Implements: |
java.sql.Connection |
Description
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
.
Class Summary
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; ...
Get Java Server Pages now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.