This commit is contained in:
Redkale
2017-01-17 13:37:34 +08:00
parent da0ff24af6
commit 4071a5d165
5 changed files with 31 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ public interface DistributeTableStrategy<T> {
* @param table 模板表的表名
* @param primary 记录主键
*
* @return
* @return 带库名的全表名
*/
default String getTable(String table, Serializable primary) {
return null;
@@ -38,7 +38,7 @@ public interface DistributeTableStrategy<T> {
* @param table 模板表的表名
* @param node 过滤条件
*
* @return
* @return 带库名的全表名
*/
default String getTable(String table, FilterNode node) {
return null;
@@ -51,7 +51,7 @@ public interface DistributeTableStrategy<T> {
* @param table 模板表的表名
* @param bean 实体对象
*
* @return
* @return 带库名的全表名
*/
public String getTable(String table, T bean);
}

View File

@@ -175,6 +175,7 @@ public class FilterNode { //FilterNode 不能实现Serializable接口 否则
* @param func EntityInfo的加载器
* @param update 是否用于更新的JOIN
* @param joinTabalis 关联表集合
* @param haset 已拼接过的字段名
* @param info Entity类的EntityInfo
*
* @return SQL的join语句 不存在返回null