public final class BindingTableRule extends Object
Binding table is same sharding rule with different tables, use one of them can deduce other name of actual tables and data sources.
| Constructor and Description |
|---|
BindingTableRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBindingActualTable(String dataSource,
String logicTable,
String otherActualTable)
Deduce actual table name from other actual table name in same binding table rule.
|
boolean |
hasLogicTable(String logicTableName)
Adjust contains this logic table in this rule.
|
public boolean hasLogicTable(String logicTableName)
logicTableName - logic table namepublic String getBindingActualTable(String dataSource, String logicTable, String otherActualTable)
dataSource - data source namelogicTable - logic table nameotherActualTable - other actual table name in same binding table ruleCopyright © 2018. All rights reserved.