|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionLifecycleListener
This interface can be implemented to perform custom behavior on each connection as it gets borrowed from the connection pool and then released back to the pool.
Method Summary | |
---|---|
void |
onBorrow(JDBCDataStore store,
Connection cx)
Called when the collection is being borrowed from the connection pool |
void |
onCommit(JDBCDataStore store,
Connection cx)
Called when the connection comes to a commit |
void |
onRelease(JDBCDataStore store,
Connection cx)
Called when the collection is being released back to the connection pool |
void |
onRollback(JDBCDataStore store,
Connection cx)
Called when the connection comes to a rollback |
Method Detail |
---|
void onBorrow(JDBCDataStore store, Connection cx) throws SQLException
SQLException
void onRelease(JDBCDataStore store, Connection cx) throws SQLException
SQLException
void onCommit(JDBCDataStore store, Connection cx) throws SQLException
SQLException
void onRollback(JDBCDataStore store, Connection cx) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |