| Package | Description |
|---|---|
| io.r2dbc.proxy | |
| io.r2dbc.proxy.callback |
Proxy related classes
|
| io.r2dbc.proxy.listener |
Listener classes
|
| io.r2dbc.proxy.support |
Misc support classes
|
| io.r2dbc.proxy.test |
Utility classes for testing
|
| Modifier and Type | Method and Description |
|---|---|
ProxyConnectionFactory.Builder |
ProxyConnectionFactory.Builder.onAfterQuery(Consumer<QueryExecutionInfo> consumer)
Register a callback consumer for after query execution.
|
ProxyConnectionFactory.Builder |
ProxyConnectionFactory.Builder.onBeforeQuery(Consumer<QueryExecutionInfo> consumer)
Register a callback consumer for before query execution.
|
ProxyConnectionFactory.Builder |
ProxyConnectionFactory.Builder.onEachQueryResult(Consumer<QueryExecutionInfo> consumer)
Register a callback consumer for processing each query result.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
ProxyFactory.wrapResult(Result result,
QueryExecutionInfo executionInfo)
Create a proxy
Result. |
| Constructor and Description |
|---|
ResultCallbackHandler(Result result,
QueryExecutionInfo queryExecutionInfo,
ProxyConfig proxyConfig)
Callback handler logic for
Result. |
| Modifier and Type | Method and Description |
|---|---|
QueryExecutionInfo |
LastExecutionAwareListener.getAfterQueryExecutionInfo()
Get the last used
QueryExecutionInfo in ProxyExecutionListener.afterQuery(QueryExecutionInfo). |
QueryExecutionInfo |
LastExecutionAwareListener.getBeforeQueryExecutionInfo()
Get the last used
QueryExecutionInfo in ProxyExecutionListener.beforeQuery(QueryExecutionInfo). |
QueryExecutionInfo |
LastExecutionAwareListener.getEachQueryResultExecutionInfo()
Get the last used
QueryExecutionInfo in ProxyExecutionListener.eachQueryResult(QueryExecutionInfo). |
| Modifier and Type | Method and Description |
|---|---|
default void |
LifeCycleListener.afterExecuteOnBatch(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Query execution callback that is invoked after
Batch.execute() is called. |
default void |
ProxyMethodExecutionListener.afterExecuteOnBatch(QueryExecutionInfo queryExecutionInfo)
Query execution callback that is invoked after
Batch.execute() is called. |
default void |
LifeCycleListener.afterExecuteOnStatement(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Query execution callback that is invoked after
Statement.execute() is called. |
default void |
ProxyMethodExecutionListener.afterExecuteOnStatement(QueryExecutionInfo queryExecutionInfo)
Query execution callback that is invoked after
Statement.execute() is called. |
default void |
LifeCycleListener.afterQuery(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Called after execution of query.
|
void |
LifeCycleExecutionListener.afterQuery(QueryExecutionInfo execInfo)
Deprecated.
|
void |
CompositeProxyExecutionListener.afterQuery(QueryExecutionInfo execInfo) |
void |
ProxyMethodExecutionListenerAdapter.afterQuery(QueryExecutionInfo execInfo) |
void |
LastExecutionAwareListener.afterQuery(QueryExecutionInfo execInfo) |
default void |
ProxyExecutionListener.afterQuery(QueryExecutionInfo execInfo)
Called after executing a query (
Batch.execute() or Statement.execute()). |
default void |
LifeCycleListener.beforeExecuteOnBatch(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Query execution callback that is invoked before
Batch.execute() is called. |
default void |
ProxyMethodExecutionListener.beforeExecuteOnBatch(QueryExecutionInfo queryExecutionInfo)
Query execution callback that is invoked before
Batch.execute() is called. |
default void |
LifeCycleListener.beforeExecuteOnStatement(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Query execution callback that is invoked before
Statement.execute() is called. |
default void |
ProxyMethodExecutionListener.beforeExecuteOnStatement(QueryExecutionInfo queryExecutionInfo)
Query execution callback that is invoked before
Statement.execute() is called. |
default void |
LifeCycleListener.beforeQuery(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Called before execution of query.
|
void |
LifeCycleExecutionListener.beforeQuery(QueryExecutionInfo execInfo)
Deprecated.
|
void |
CompositeProxyExecutionListener.beforeQuery(QueryExecutionInfo execInfo) |
void |
ProxyMethodExecutionListenerAdapter.beforeQuery(QueryExecutionInfo execInfo) |
void |
LastExecutionAwareListener.beforeQuery(QueryExecutionInfo execInfo) |
default void |
ProxyExecutionListener.beforeQuery(QueryExecutionInfo execInfo)
Called before executing a query (
Batch.execute() or Statement.execute()). |
void |
LifeCycleExecutionListener.eachQueryResult(QueryExecutionInfo execInfo)
Deprecated.
|
void |
CompositeProxyExecutionListener.eachQueryResult(QueryExecutionInfo execInfo) |
void |
ProxyMethodExecutionListenerAdapter.eachQueryResult(QueryExecutionInfo execInfo) |
void |
LastExecutionAwareListener.eachQueryResult(QueryExecutionInfo execInfo) |
default void |
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo execInfo)
Called on processing each query
Result. |
default void |
LifeCycleListener.onEachQueryResult(QueryExecutionInfo queryExecutionInfo)
Deprecated.
Query result processing callback that is invoked on each query result while processed by
Result.map(BiFunction). |
| Modifier and Type | Field and Description |
|---|---|
BiConsumer<QueryExecutionInfo,StringBuilder> |
QueryExecutionInfoFormatter.onBindings
Default implementation for formatting bindings.
|
| Modifier and Type | Method and Description |
|---|---|
String |
QueryExecutionInfoFormatter.apply(QueryExecutionInfo executionInfo) |
String |
QueryExecutionInfoFormatter.format(QueryExecutionInfo executionInfo)
Convert the given
QueryExecutionInfo to String using registered consumers. |
| Modifier and Type | Method and Description |
|---|---|
QueryExecutionInfoFormatter |
QueryExecutionInfoFormatter.addConsumer(BiConsumer<QueryExecutionInfo,StringBuilder> consumer)
|
| Modifier and Type | Class and Description |
|---|---|
class |
MockQueryExecutionInfo
Mock implementation of
QueryExecutionInfo for testing. |
Copyright © 2020. All rights reserved.