|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShardingTool
This interface defines some Sharding methods
| Method Summary | |
|---|---|
SqlBoxContext[] |
handleShardDatabase(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
Dealing a ShardTable SqlItem, return real master SqlBoxContexts array |
String[] |
handleShardTable(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
Dealing a SqlItem(SqlOption.SHARD_TABLE, entityOrClass, shardKey1, optionalShardKey2) item, return real table names array |
| Method Detail |
|---|
String[] handleShardTable(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
ctx - Current SqlBoxContext instanceentityOrClass - The entity or class need do shardingshardKey - The shard key or keys
SqlBoxContext[] handleShardDatabase(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
ctx - Current SqlBoxContext instanceentityOrClass - The entity or class need do shardingshardKey - The shard key or keys
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||