|
||||||||||
| 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 shardKey array based on current SqlBoxContext and TableModel, return SqlBoxContext array, in this jSqlBox version, only support return 1 SqlBoxContext |
String[] |
handleShardTable(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
Dealing a shardKey array based on current SqlBoxContext and TableModel, return table name array, in this jSqlBox version, only support return 1 table name |
| 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 | |||||||||