类 AbstractLambdaWrapper<T,Children extends AbstractLambdaWrapper<T,Children>>
java.lang.Object
com.baomidou.mybatisplus.core.conditions.Wrapper<T>
com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,SFunction<T,?>,Children>
com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper<T,Children>
- 所有已实现的接口:
Compare<Children,,SFunction<T, ?>> Func<Children,,SFunction<T, ?>> Join<Children>,Nested<Children,,Children> ISqlSegment,Serializable
- 直接已知子类:
LambdaQueryWrapper,LambdaUpdateWrapper
public abstract class AbstractLambdaWrapper<T,Children extends AbstractLambdaWrapper<T,Children>>
extends AbstractWrapper<T,SFunction<T,?>,Children>
Lambda 语法使用 Wrapper
统一处理解析 lambda 获取 column
- 从以下版本开始:
- 2017-05-26
- 作者:
- hubin miemie HCL
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 com.baomidou.mybatisplus.core.conditions.AbstractWrapper
AbstractWrapper.DoSomething -
字段概要
从类继承的字段 com.baomidou.mybatisplus.core.conditions.AbstractWrapper
expression, lastSql, paramAlias, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, typedThis -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final StringcolumnsToString(boolean onlyColumn, SFunction<T, ?>... columns) protected final StringcolumnsToString(boolean onlyColumn, List<SFunction<T, ?>> columns) protected final StringcolumnsToString(SFunction<T, ?>... columns) 获取 columnNamesprotected StringcolumnToString(SFunction<T, ?> column) 获取 columnNameprotected StringcolumnToString(SFunction<T, ?> column, boolean onlyColumn) protected ColumnCachegetColumnCache(SFunction<T, ?> column) 获取 SerializedLambda 对应的列信息,从 lambda 表达式中推测实体类final Children分组:GROUP BY 字段, ...分组:GROUP BY 字段, ...final Children分组:GROUP BY 字段, ...final Children排序:ORDER BY 字段, ...final ChildrenorderByAsc(boolean condition, SFunction<T, ?> column, SFunction<T, ?>... columns) 排序:ORDER BY 字段, ...final ChildrenorderByAsc(SFunction<T, ?> column, SFunction<T, ?>... columns) 排序:ORDER BY 字段, ...final ChildrenorderByDesc(boolean condition, SFunction<T, ?> column, SFunction<T, ?>... columns) 排序:ORDER BY 字段, ...final ChildrenorderByDesc(SFunction<T, ?> column, SFunction<T, ?>... columns) 排序:ORDER BY 字段, ...从类继承的方法 com.baomidou.mybatisplus.core.conditions.AbstractWrapper
addCondition, addNestedCondition, allEq, allEq, and, and, appendSqlSegments, apply, between, clear, clone, columnsToString, columnToSqlSegment, comment, doGroupBy, doOrderBy, eq, eqSql, exists, first, formatParam, formatSqlMaybeWithParam, func, ge, geSql, getEntity, getEntityClass, getExpression, getParamAlias, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, groupBy, gt, gtSql, having, in, in, inExpression, inExpression, initNeed, inSql, instance, isNotNull, isNull, isUseAnnotationOrderBy, last, le, leSql, like, likeLeft, likeRight, likeValue, lt, ltSql, maybeDo, ne, nested, not, not, notBetween, notExists, notIn, notIn, notInSql, notLike, notLikeLeft, notLikeRight, or, or, orderBy, orderBy, orderBy, setEntity, setEntityClass, setParamAlias从类继承的方法 com.baomidou.mybatisplus.core.conditions.Wrapper
getCustomSqlSegment, getSqlSelect, getSqlSet, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, isNonEmptyOfEntity, isNonEmptyOfNormal, isNonEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhere从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Compare
allEq, allEq, allEq, allEq, between, eq, ge, gt, le, like, likeLeft, likeRight, lt, ne, notBetween, notLike, notLikeLeft, notLikeRight从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Func
eqSql, func, geSql, groupBy, groupBy, gtSql, having, in, in, inSql, isNotNull, isNull, leSql, ltSql, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc
-
构造器详细资料
-
AbstractLambdaWrapper
public AbstractLambdaWrapper()
-
-
方法详细资料
-
columnsToString
从类复制的说明:AbstractWrapper获取 columnNames- 覆盖:
columnsToString在类中AbstractWrapper<T,SFunction<T, ?>, Children extends AbstractLambdaWrapper<T, Children>>
-
columnsToString
-
columnsToString
-
columnToString
从类复制的说明:AbstractWrapper获取 columnName- 覆盖:
columnToString在类中AbstractWrapper<T,SFunction<T, ?>, Children extends AbstractLambdaWrapper<T, Children>>
-
columnToString
-
groupBy
@SafeVarargs public final Children groupBy(boolean condition, SFunction<T, ?> column, SFunction<T, ?>... columns) 从接口复制的说明:Func分组:GROUP BY 字段, ...例: groupBy(true, "id", "name")
-
orderBy
@SafeVarargs public final Children orderBy(boolean condition, boolean isAsc, SFunction<T, ?> column, SFunction<T, ?>... columns) 从接口复制的说明:Func排序:ORDER BY 字段, ... -
groupBy
从接口复制的说明:Func分组:GROUP BY 字段, ...例: groupBy("id", "name")
- 参数:
column- 单个字段columns- 字段数组- 返回:
- children
-
groupBy
从接口复制的说明:Func分组:GROUP BY 字段, ...例: groupBy(true, "id", Arrays.asList("name"))
-
orderByAsc
从接口复制的说明:Func排序:ORDER BY 字段, ... ASC- 参数:
column- 字段columns- 字段数组- 返回:
- children
-
orderByAsc
@SafeVarargs public final Children orderByAsc(boolean condition, SFunction<T, ?> column, SFunction<T, ?>... columns) 从接口复制的说明:Func排序:ORDER BY 字段, ... ASC- 参数:
condition- 执行条件column- 字段columns- 字段数组
-
orderByDesc
从接口复制的说明:Func排序:ORDER BY 字段, ... DESC- 参数:
column- 单个字段columns- 字段列表
-
orderByDesc
@SafeVarargs public final Children orderByDesc(boolean condition, SFunction<T, ?> column, SFunction<T, ?>... columns) 从接口复制的说明:Func排序:ORDER BY 字段, ... DESC- 参数:
condition- 执行条件column- 单个字段columns- 字段列表
-
getColumnCache
获取 SerializedLambda 对应的列信息,从 lambda 表达式中推测实体类如果获取不到列信息,那么本次条件组装将会失败
- 返回:
- 列
- 抛出:
MybatisPlusException- 获取不到列信息时抛出异常
-