类 JoinParam<S,R>
java.lang.Object
site.sorghum.join.entity.JoinParam<S,R>
连接参数
- 从以下版本开始:
- 2023/04/14
- 作者:
- Sorghum
-
字段概要
字段修饰符和类型字段说明(专用程序包) Boolean是否继续Join(专用程序包) Integer继续Join的Mode(专用程序包) String额外Where中的条件 无需加where(专用程序包) String[]查询的字段(专用程序包) Boolean是否需要平铺(专用程序包) String资源名(专用程序包) String直接查询的SQL,必须含有 '= #{uniqueKey}' 优先级最高 比如:select * from table where id = #{uniqueKey} ,这个uniqueKey就是注解 -> 当前变量的值 在某些情况下会自动优化成:select * from table where id in (...?)(专用程序包) String查询的表名目标类(专用程序包) String当前变量 -> SQL中唯一键(专用程序包) String值名 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明continueJoin(boolean continueJoin) continueJoinMode(Integer continueJoinMode) static JoinParameasyJoin2JoinParam(site.sorghum.join.aop.EasyJoin easyJoin, String valueKey) extraWhere(String extraWhere) flat(boolean flat) getJoinResMap(Object obj) 获取JoinResMapprivate static StringgetSqlFieldName(cn.hutool.core.lang.func.Func1<?, ?> func) sourceName(String sourceName) targetClass(Class<R> targetClass)
-
字段详细资料
-
sourceName
String sourceName资源名 -
valueKey
String valueKey值名 -
tableName
String tableName查询的表名 -
uniqueKey
String uniqueKey当前变量 -> SQL中唯一键 -
field
String[] field查询的字段 -
extraWhere
String extraWhere额外Where中的条件 无需加where -
sql
String sql直接查询的SQL,必须含有 '= #{uniqueKey}' 优先级最高 比如:select * from table where id = #{uniqueKey} ,这个uniqueKey就是注解 -> 当前变量的值 在某些情况下会自动优化成:select * from table where id in (...?) -
targetClass
目标类 -
flat
Boolean flat是否需要平铺 -
continueJoin
Boolean continueJoin是否继续Join -
continueJoinMode
Integer continueJoinMode继续Join的Mode
-
-
构造器详细资料
-
JoinParam
public JoinParam()
-
-
方法详细资料
-
valueKey
-
valueKey
-
tableName
-
sourceName
-
tableName
-
uniqueKey
-
uniqueKey
-
field
-
field
-
extraWhere
-
sql
-
targetClass
-
getSqlFieldName
-
flat
-
continueJoin
-
continueJoinMode
-
easyJoin2JoinParam
-
getJoinResMap
获取JoinResMap- 参数:
obj- 对象- 返回:
Map<{@link ?},{@link ?}>
-