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

Public Member Functions

 InterceptorImpl (Connection connection, Properties properties)
String toString ()
SessionSPI getSession ()
boolean executeTopLevelOnly ()
ResultSetInternalMethods postProcess (String sql, Statement statement, ResultSetInternalMethods result, Connection connection, int arg4, boolean arg5, boolean arg6, SQLException sqlException) throws SQLException
ResultSetInternalMethods preProcess (String sql, Statement statement, Connection connection) throws SQLException
void destroy (StatementInterceptor statementInterceptor)
void destroy (ConnectionLifecycleInterceptor connectionLifecycleInterceptor)
boolean setAutoCommit (boolean autocommit) throws SQLException
void close ()
boolean commit () throws SQLException
boolean rollback () throws SQLException
boolean rollback (Savepoint savepoint) throws SQLException
boolean setCatalog (String catalog) throws SQLException
boolean transactionCompleted () throws SQLException
boolean transactionBegun () throws SQLException

Static Public Member Functions

static InterceptorImpl getInterceptorImpl (ConnectionLifecycleInterceptor connectionLifecycleInterceptor, Connection connection, Properties properties)
static InterceptorImpl getInterceptorImpl (StatementInterceptor statementInterceptor, Connection connection, Properties properties)
static InterceptorImpl getInterceptorImpl (Connection connection, Properties properties)
static InterceptorImpl getInterceptorImpl (java.sql.Connection connection)

Detailed Description

This class implements the behavior associated with connection callbacks for statement execution and connection lifecycle. There is a clusterj session associated with the interceptor that is used to interact with the cluster. There is exactly one statement interceptor and one connection lifecycle interceptor associated with the interceptor. All of the SQL post-parsing behavior is contained here, and uses classes in the org.antlr.runtime and com.mysql.clusterj.jdbc.antlr packages to perform the parsing of the SQL statement. Analysis of the parsed SQL statement occurs here, and clusterj artifacts are constructed for use in other classes, in particular SQLExecutor and its command-specific subclasses.

Definition at line 69 of file InterceptorImpl.java.

Constructor & Destructor Documentation

com.mysql.clusterj.jdbc.InterceptorImpl.InterceptorImpl ( Connection  connection,
Properties  properties 
)
inline

Create the interceptor.

Parameters
connectionthe connection being intercepted
propertiesthe connection properties

Definition at line 118 of file InterceptorImpl.java.

Here is the caller graph for this function:

Member Function Documentation

static InterceptorImpl com.mysql.clusterj.jdbc.InterceptorImpl.getInterceptorImpl ( ConnectionLifecycleInterceptor  connectionLifecycleInterceptor,
Connection  connection,
Properties  properties 
)
inlinestatic

Return the interceptor for the connection lifecycle callbacks.

Parameters
connectionLifecycleInterceptorthe connection lifecycle interceptor
connectionthe connection
propertiesthe connection properties
Returns
the interceptor delegate

Definition at line 135 of file InterceptorImpl.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static InterceptorImpl com.mysql.clusterj.jdbc.InterceptorImpl.getInterceptorImpl ( StatementInterceptor  statementInterceptor,
Connection  connection,
Properties  properties 
)
inlinestatic

Return the interceptor for the statement interceptor callbacks.

Parameters
statementInterceptorthe statement interceptor
connectionthe connection
propertiesthe connection properties
Returns
the interceptor delegate

Definition at line 160 of file InterceptorImpl.java.

Here is the call graph for this function:

static InterceptorImpl com.mysql.clusterj.jdbc.InterceptorImpl.getInterceptorImpl ( Connection  connection,
Properties  properties 
)
inlinestatic

Create the interceptor to handle both connection lifecycle and statement interceptors.

Parameters
connectionthe connection
propertiesthe connection properties
Returns

Definition at line 181 of file InterceptorImpl.java.

Here is the call graph for this function:

static InterceptorImpl com.mysql.clusterj.jdbc.InterceptorImpl.getInterceptorImpl ( java.sql.Connection  connection)
inlinestatic

Return the interceptor assigned to the connection. If there is no interceptor, return null.

Parameters
connectionthe connection
Returns
the interceptor for this connection or null if there is no interceptor

Definition at line 198 of file InterceptorImpl.java.

boolean com.mysql.clusterj.jdbc.InterceptorImpl.setAutoCommit ( boolean  autocommit) throws SQLException
inline

TODO This needs to be rewritten with a proper state machine.

Definition at line 526 of file InterceptorImpl.java.

Here is the call graph for this function:


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