com.github.dennisit.vplus.data.dsource.shard.strategy.ShardStrategy Maven / Gradle / Ivy
package com.github.dennisit.vplus.data.dsource.shard.strategy;
public interface ShardStrategy {
String getShardType();
ShardStrategy.DataTableName handle(String var1, String var2, int var3, int var4, Object var5);
public static class DataTableName {
private String tableName;
private String dataSourceKey;
public DataTableName() {
}
public DataTableName(String dataSourceKey) {
this.dataSourceKey = dataSourceKey;
}
public DataTableName(String tableName, String dataSourceKey) {
this.tableName = tableName;
this.dataSourceKey = dataSourceKey;
}
public String getTableName() {
return this.tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getDataSourceKey() {
return this.dataSourceKey;
}
public void setDataSourceKey(String dataSourceKey) {
this.dataSourceKey = dataSourceKey;
}
}
}