public abstract class AbstractPooledConnection<D extends CommonDataSource> extends Object implements PooledConnection, InvocationHandler
| Constructor and Description |
|---|
AbstractPooledConnection(D dataSource,
Connection actualConnection,
int maxStatements) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
void |
finalize() |
Connection |
getConnection() |
abstract ConnectionEvent |
getConnectionEvent(SQLException sqlException) |
PrintWriter |
getLogWriter() |
protected Iterable<StatementEventListener> |
getStatementEventListeners() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public AbstractPooledConnection(D dataSource, Connection actualConnection, int maxStatements) throws SQLException
SQLExceptionpublic abstract ConnectionEvent getConnectionEvent(SQLException sqlException)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic PrintWriter getLogWriter() throws SQLException
SQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic void close()
throws SQLException
close in interface PooledConnectionSQLExceptionpublic void finalize()
throws SQLException
finalize in class ObjectSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionprotected Iterable<StatementEventListener> getStatementEventListeners()
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener in interface PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener in interface PooledConnectionCopyright © 2017. All rights reserved.