Package org.smallmind.persistence.sql
Class AbstractPooledConnection<D extends CommonDataSource>
java.lang.Object
org.smallmind.persistence.sql.AbstractPooledConnection<D>
- All Implemented Interfaces:
InvocationHandler,PooledConnection
- Direct Known Subclasses:
DataSourcePooledConnection,XADataSourcePooledConnection
public abstract class AbstractPooledConnection<D extends CommonDataSource>
extends Object
implements PooledConnection, InvocationHandler
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPooledConnection(D dataSource, Connection actualConnection, int maxStatements) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()abstract ConnectionEventgetConnectionEvent(SQLException sqlException) protected Iterable<StatementEventListener>voidvoid
-
Constructor Details
-
AbstractPooledConnection
public AbstractPooledConnection(D dataSource, Connection actualConnection, int maxStatements) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getConnectionEvent
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
getLogWriter
- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfacePooledConnection
-
close
- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
addConnectionEventListener
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
removeConnectionEventListener
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
getStatementEventListeners
-
addStatementEventListener
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-