public static class ConnectionRegressionTest.Bug88227QueryInterceptor extends BaseQueryInterceptor
| Modifier and Type | Field and Description |
|---|---|
static boolean |
enabled |
| Constructor and Description |
|---|
Bug88227QueryInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Resultset> |
postProcess(java.util.function.Supplier<java.lang.String> sql,
Query interceptedQuery,
T originalResultSet,
ServerSession serverSession)
Called after the given query has been sent to the server for processing.
|
<M extends Message> |
preProcess(M queryPacket)
Called before the given query packet is going to be sent to the server for processing.
|
<T extends Resultset> |
preProcess(java.util.function.Supplier<java.lang.String> sql,
Query interceptedQuery)
Called before the given query is going to be sent to the server for processing.
|
destroy, executeTopLevelOnly, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostProcesspublic <T extends Resultset> T preProcess(java.util.function.Supplier<java.lang.String> sql, Query interceptedQuery)
QueryInterceptorResultset), and if so,
the server will not execute the query, and the given result set will be
returned to the application instead.
This method will be called while the connection-level mutex is held, so
it will only be called from one thread at a time.preProcess in interface QueryInterceptorpreProcess in class BaseQueryInterceptorT - Resultset objectsql - the Supplier for SQL representation of the queryinterceptedQuery - the actual Query instance being interceptedResultset that should be returned to the application instead
of results that are created from actual execution of the intercepted
query.public <M extends Message> M preProcess(M queryPacket)
QueryInterceptorpublic <T extends Resultset> T postProcess(java.util.function.Supplier<java.lang.String> sql, Query interceptedQuery, T originalResultSet, ServerSession serverSession)
QueryInterceptorpostProcess in interface QueryInterceptorpostProcess in class BaseQueryInterceptorT - Resultset objectsql - the Supplier for SQL representation of the queryinterceptedQuery - the actual Query instance being interceptedoriginalResultSet - a Resultset created from query executionserverSession - ServerSession object after the query executionResultset that should be returned to the application instead
of results that are created from actual execution of the intercepted
query.