MySQL 5.6.14 Source Code Document
|
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) |
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.
|
inline |
Create the interceptor.
connection | the connection being intercepted |
properties | the connection properties |
Definition at line 118 of file InterceptorImpl.java.
|
inlinestatic |
Return the interceptor for the connection lifecycle callbacks.
connectionLifecycleInterceptor | the connection lifecycle interceptor |
connection | the connection |
properties | the connection properties |
Definition at line 135 of file InterceptorImpl.java.
|
inlinestatic |
Return the interceptor for the statement interceptor callbacks.
statementInterceptor | the statement interceptor |
connection | the connection |
properties | the connection properties |
Definition at line 160 of file InterceptorImpl.java.
|
inlinestatic |
Create the interceptor to handle both connection lifecycle and statement interceptors.
connection | the connection |
properties | the connection properties |
Definition at line 181 of file InterceptorImpl.java.
|
inlinestatic |
Return the interceptor assigned to the connection. If there is no interceptor, return null.
connection | the connection |
Definition at line 198 of file InterceptorImpl.java.
|
inline |
TODO This needs to be rewritten with a proper state machine.
Definition at line 526 of file InterceptorImpl.java.