MySQL 5.6.14 Source Code Document
|
Public Member Functions | |
void | init (Connection conn, Properties properties) throws SQLException |
void | destroy () |
void | close () throws SQLException |
boolean | commit () throws SQLException |
boolean | rollback () throws SQLException |
boolean | rollback (Savepoint savepoint) throws SQLException |
boolean | setAutoCommit (boolean autocommit) throws SQLException |
boolean | setCatalog (String catalog) throws SQLException |
boolean | transactionBegun () throws SQLException |
boolean | transactionCompleted () throws SQLException |
This interceptor is a plugin for the MySQL JDBC driver, Connector-J. It is called for each change of state of the associated connection. It is registered with the connection via the connection URL parameter connectionLifecycleInterceptors=com.mysql.clusterj.jdbc.ConnectionLifecycleInterceptor. It must be used in conjunction with the StatementInterceptor.
Definition at line 36 of file ConnectionLifecycleInterceptor.java.
|
inline |
This method is called during connection setup with a new instance of ConnectionLifecycleInterceptor. An instance of InterceptorImpl is either created or found by lookup. Before the interceptor is useable, both the connection lifecycle interceptor and the statement interceptor must be registered.
conn | the associated connection |
properties | the properties used to create the connection |
Definition at line 55 of file ConnectionLifecycleInterceptor.java.