org.tinygroup.dbrouter.impl.partionrule
类 PartionRuleByTableName
java.lang.Object
org.tinygroup.dbrouter.impl.partionrule.PartionRuleByTableName
- 所有已实现的接口:
- PartitionRule
public class PartionRuleByTableName
- extends Object
- implements PartitionRule
分区规则实现类
Created by luoguo on 13-12-16.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartionRuleByTableName
public PartionRuleByTableName()
PartionRuleByTableName
public PartionRuleByTableName(String tableName)
- 构造函数
- 参数:
tableName -
getTableName
public String getTableName()
setTableName
public void setTableName(String tableName)
isMatch
public boolean isMatch(String sql)
- 查看是否匹配
- 指定者:
- 接口
PartitionRule 中的 isMatch
- 参数:
sql -
- 返回:
Copyright © 2006–2015 TinyGroup. All rights reserved.