public abstract class ShardingDMLStatementValidator<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement> extends Object implements ShardingStatementValidator<T>
| 构造器和说明 |
|---|
ShardingDMLStatementValidator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Optional<ShardingConditions> |
createShardingConditions(SQLStatementContext<?> sqlStatementContext,
ShardingRule shardingRule,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.AssignmentSegment> assignments,
List<Object> parameters)
Create shardingConditions.
|
protected boolean |
isSameRouteContext(RouteContext routeContext,
RouteContext subRouteContext)
Judge whether is same route context or not.
|
protected void |
validateMultipleTable(ShardingRule shardingRule,
SQLStatementContext<T> sqlStatementContext)
Validate multiple table.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostValidate, preValidateprotected void validateMultipleTable(ShardingRule shardingRule, SQLStatementContext<T> sqlStatementContext)
shardingRule - sharding rulesqlStatementContext - sqlStatementContextprotected boolean isSameRouteContext(RouteContext routeContext, RouteContext subRouteContext)
routeContext - route contextsubRouteContext - sub route contextprotected Optional<ShardingConditions> createShardingConditions(SQLStatementContext<?> sqlStatementContext, ShardingRule shardingRule, Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.AssignmentSegment> assignments, List<Object> parameters)
sqlStatementContext - SQL statement contextshardingRule - shardingRuleassignments - assignmentsparameters - parameter collectionCopyright © 2022 The Apache Software Foundation. All rights reserved.