public static class CharsetRegressionTest.Bug95139QueryInterceptor extends BaseQueryInterceptor
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
queryVarsCnt |
(package private) int |
setCharacterSetResultsCnt |
(package private) java.lang.String |
setCharacterSetResultsQuery |
(package private) int |
setNamesCnt |
(package private) java.lang.String |
setNamesQuery |
| Constructor and Description |
|---|
Bug95139QueryInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<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> str,
Query interceptedQuery)
Called before the given query is going to be sent to the server for processing.
|
destroy, executeTopLevelOnly, init, postProcessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostProcessint queryVarsCnt
int setNamesCnt
java.lang.String setNamesQuery
int setCharacterSetResultsCnt
java.lang.String setCharacterSetResultsQuery
public <M extends Message> M preProcess(M queryPacket)
QueryInterceptorpublic <T extends Resultset> T preProcess(java.util.function.Supplier<java.lang.String> str, 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 objectstr - 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.