public interface ConnectionLifecycleInterceptor extends Extension
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when an application calls Connection.close(), before the driver
processes its own internal logic for close.
|
boolean |
commit()
Called when an application calls Connection.commit(), before the
driver processes its own internal logic for commit().
|
boolean |
rollback()
Called when an application calls Connection.rollback(), before the
driver processes its own internal logic for rollback().
|
boolean |
rollback(java.sql.Savepoint s)
Called when an application calls Connection.rollback(), before the
driver processes its own internal logic for rollback().
|
boolean |
setAutoCommit(boolean flag)
Called when an application calls Connection.setAutoCommit(), before the
driver processes its own internal logic for setAutoCommit().
|
boolean |
setCatalog(java.lang.String catalog)
Called when an application calls Connection.setCatalog(), before the
driver processes its own internal logic for setCatalog().
|
boolean |
transactionBegun()
Called when the driver has been told by the server that a transaction
is now in progress (when one has not been currently in progress).
|
boolean |
transactionCompleted()
Called when the driver has been told by the server that a transaction
has completed, and no transaction is currently in progress.
|
void close()
throws java.sql.SQLException
java.sql.SQLExceptionboolean commit()
throws java.sql.SQLException
java.sql.SQLException - if an error occursboolean rollback()
throws java.sql.SQLException
java.sql.SQLException - if an error occursboolean rollback(java.sql.Savepoint s)
throws java.sql.SQLException
java.sql.SQLException - if an error occursboolean setAutoCommit(boolean flag)
throws java.sql.SQLException
java.sql.SQLException - if an error occursboolean setCatalog(java.lang.String catalog)
throws java.sql.SQLException
java.sql.SQLException - if an error occursboolean transactionBegun()
throws java.sql.SQLException
java.sql.SQLExceptionboolean transactionCompleted()
throws java.sql.SQLException
java.sql.SQLException