MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.jdbc.ConnectionLifecycleInterceptor Class Reference
Collaboration diagram for com.mysql.clusterj.jdbc.ConnectionLifecycleInterceptor:

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

Detailed Description

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.

Member Function Documentation

void com.mysql.clusterj.jdbc.ConnectionLifecycleInterceptor.init ( Connection  conn,
Properties  properties 
) throws SQLException
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.

Parameters
connthe associated connection
propertiesthe properties used to create the connection

Definition at line 55 of file ConnectionLifecycleInterceptor.java.

Here is the call graph for this function:


The documentation for this class was generated from the following file: