public final class SPISQLExecutionHook extends Object implements SQLExecutionHook
| Constructor and Description |
|---|
SPISQLExecutionHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishFailure(Exception cause)
Handle when SQL execution finished failure.
|
void |
finishSuccess()
Handle when SQL execution finished success.
|
void |
start(String dataSourceName,
String sql,
List<Object> parameters,
org.apache.shardingsphere.spi.database.metadata.DataSourceMetaData dataSourceMetaData,
boolean isTrunkThread,
Map<String,Object> shardingExecuteDataMap)
Handle when SQL execution started.
|
public void start(String dataSourceName, String sql, List<Object> parameters, org.apache.shardingsphere.spi.database.metadata.DataSourceMetaData dataSourceMetaData, boolean isTrunkThread, Map<String,Object> shardingExecuteDataMap)
SQLExecutionHookstart in interface SQLExecutionHookdataSourceName - data source namesql - SQLparameters - parameters of SQLdataSourceMetaData - data source meta dataisTrunkThread - is execution in trunk threadshardingExecuteDataMap - sharding execute data mappublic void finishSuccess()
SQLExecutionHookfinishSuccess in interface SQLExecutionHookpublic void finishFailure(Exception cause)
SQLExecutionHookfinishFailure in interface SQLExecutionHookcause - failure causeCopyright © 2020 The Apache Software Foundation. All rights reserved.