|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionLifecycleInterceptor
Implementors of this interface can be installed via the "connectionLifecycleInterceptors" configuration property and receive events and alter behavior of "lifecycle" methods on our connection implementation. The driver will create one instance of a given interceptor per-connection.
Method Summary | |
---|---|
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(). |
Methods inherited from interface com.mysql.jdbc.Extension |
---|
destroy, init |
Method Detail |
---|
void close() throws java.sql.SQLException
java.sql.SQLException
boolean 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 occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |