Package org.geotools.jdbc
Interface ConnectionLifecycleListener
- 
- All Known Implementing Classes:
- SessionCommandsListener
 
 public interface ConnectionLifecycleListenerThis 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.- Author:
- Andrea Aime - GeoSolutions
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBorrow(JDBCDataStore store, Connection cx)Called when the collection is being borrowed from the connection poolvoidonCommit(JDBCDataStore store, Connection cx)Called when the connection comes to a commitvoidonRelease(JDBCDataStore store, Connection cx)Called when the collection is being released back to the connection poolvoidonRollback(JDBCDataStore store, Connection cx)Called when the connection comes to a rollback
 
- 
- 
- 
Method Detail- 
onBorrowvoid onBorrow(JDBCDataStore store, Connection cx) throws SQLException Called when the collection is being borrowed from the connection pool- Throws:
- SQLException
 
 - 
onReleasevoid onRelease(JDBCDataStore store, Connection cx) throws SQLException Called when the collection is being released back to the connection pool- Throws:
- SQLException
 
 - 
onCommitvoid onCommit(JDBCDataStore store, Connection cx) throws SQLException Called when the connection comes to a commit- Throws:
- SQLException
 
 - 
onRollbackvoid onRollback(JDBCDataStore store, Connection cx) throws SQLException Called when the connection comes to a rollback- Throws:
- SQLException
 
 
- 
 
-