org.tinygroup.dbrouter.impl.keygenerator
public class RouterKeyGeneratorUUID extends Object implements RouterKeyGenerator<String>
| Constructor and 描述 |
|---|
RouterKeyGeneratorUUID() |
| Modifier and Type | Method and 描述 |
|---|---|
void |
createKeyTable(KeyTables keyTables)
创建动态数据库存储表
|
String |
getKey(String tableName)
返回指定表的新主键
|
boolean |
isAutoCreate()
是否能动态创建数据库存储表
|
void |
setRouter(Router router)
注入Router对象给主键获取器
有的时候,主键发生器需要获取集群相关的信息
|
public String getKey(String tableName)
RouterKeyGeneratorgetKey 接口 {1} 中的 {0} RouterKeyGenerator<String>public void setRouter(Router router)
RouterKeyGeneratorsetRouter 接口 {1} 中的 {0} RouterKeyGenerator<String>public boolean isAutoCreate()
RouterKeyGeneratorisAutoCreate 接口 {1} 中的 {0} RouterKeyGenerator<String>public void createKeyTable(KeyTables keyTables)
RouterKeyGeneratorcreateKeyTable 接口 {1} 中的 {0} RouterKeyGenerator<String>Copyright © 2006–2015 TinyGroup. All rights reserved.