T - type of SQL statementpublic class CommonSQLStatementContext<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement> extends Object implements SQLStatementContext<T>
| 构造器和说明 |
|---|
CommonSQLStatementContext(T sqlStatement) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsHintShardingDatabaseValue(String tableName)
Judge contains hint sharding databases value or not.
|
boolean |
containsHintShardingTableValue(String tableName)
Judge contains hint sharding table value or not.
|
boolean |
containsHintShardingValue(String tableName)
Judge contains hint sharding value or not.
|
Comparable<?> |
getHintShardingDatabaseValue(String tableName)
Get hint sharding database value.
|
Comparable<?> |
getHintShardingTableValue(String tableName)
Get hint sharding table value.
|
boolean |
isHintWriteRouteOnly()
Judge whether is hint routed to write data source or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatabaseType, getSqlStatement, getTablesContextpublic CommonSQLStatementContext(T sqlStatement)
public boolean isHintWriteRouteOnly()
public Comparable<?> getHintShardingDatabaseValue(String tableName)
tableName - table namepublic Comparable<?> getHintShardingTableValue(String tableName)
tableName - table namepublic boolean containsHintShardingDatabaseValue(String tableName)
tableName - table namepublic boolean containsHintShardingTableValue(String tableName)
tableName - table namepublic boolean containsHintShardingValue(String tableName)
tableName - table nameCopyright © 2022 The Apache Software Foundation. All rights reserved.