com.solarmetric.datasource
Class PoolConnection
java.lang.Object
|
+--com.solarmetric.datasource.ConnectionWrapper
|
+--com.solarmetric.datasource.PoolConnection
- All Implemented Interfaces:
- Comparable, Connection
- class PoolConnection
- extends ConnectionWrapper
Wrapper around an existing Connection that logs SQL and intercepts
close()
actions to return the Connection to an existing pool.
Methods inherited from class com.solarmetric.datasource.ConnectionWrapper |
addError, checkClosed, clearNeedsRollback, clearWarnings, commit, compareTo, createStatement, equals, finalize, getAutoCommit, getBaseConnection, getCatalog, getConnection, getErrorCount, getHoldability, getLastConnectionTestTime, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isFinalized, isReadOnly, nativeSQL, needsRollback, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setLastConnectionTestTime, setNeedsRollback, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, toString |
PoolConnection
protected PoolConnection(Connection conn,
JDBCConnectionRequestInfo cri,
DataSourceImpl source)
throws SQLException
getDataSource
public DataSourceImpl getDataSource()
- Overrides:
getDataSource
in class ConnectionWrapper
getConnectionRequestInfo
public JDBCConnectionRequestInfo getConnectionRequestInfo()
createStatement
public Statement createStatement()
throws SQLException
- Overrides:
createStatement
in class ConnectionWrapper
createStatement
public Statement createStatement(int type,
int concurrency)
throws SQLException
- Overrides:
createStatement
in class ConnectionWrapper
close
public void close()
throws SQLException
- Overrides:
close
in class ConnectionWrapper
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.