T - type of SQL statementpublic interface ShardingStatementValidator<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>
| Modifier and Type | Method and Description |
|---|---|
void |
postValidate(ShardingRule shardingRule,
SQLStatementContext<T> sqlStatementContext,
RouteContext routeContext,
org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema)
Validate whether sharding operation is supported after route.
|
void |
preValidate(ShardingRule shardingRule,
SQLStatementContext<T> sqlStatementContext,
List<Object> parameters,
org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema)
Validate whether sharding operation is supported before route.
|
void preValidate(ShardingRule shardingRule, SQLStatementContext<T> sqlStatementContext, List<Object> parameters, org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema)
shardingRule - sharding rulesqlStatementContext - SQL statement contextparameters - SQL parametersschema - ShardingSphere schemavoid postValidate(ShardingRule shardingRule, SQLStatementContext<T> sqlStatementContext, RouteContext routeContext, org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema)
shardingRule - sharding rulesqlStatementContext - SQL statement contextrouteContext - route contextschema - ShardingSphere schemaCopyright © 2021 The Apache Software Foundation. All rights reserved.