public abstract class AbstractLambdaWrapper<T,Children extends AbstractLambdaWrapper<T,Children>> extends AbstractWrapper<T,SFunction<T,?>,Children>
统一处理解析 lambda 获取 column
AbstractWrapper.DoSomething
expression, lastSql, paramAlias, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, typedThis
构造器和说明 |
---|
AbstractLambdaWrapper() |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
columnsToString(boolean onlyColumn,
SFunction<T,?>... columns) |
protected java.lang.String |
columnsToString(SFunction<T,?>... columns)
多字段转换为逗号 "," 分割字符串
|
protected java.lang.String |
columnToString(SFunction<T,?> column)
获取 columnName
|
protected java.lang.String |
columnToString(SFunction<T,?> column,
boolean onlyColumn) |
protected ColumnCache |
getColumnCache(SFunction<T,?> column)
获取 SerializedLambda 对应的列信息,从 lambda 表达式中推测实体类
如果获取不到列信息,那么本次条件组装将会失败
|
addCondition, addNestedCondition, allEq, allEq, and, and, appendSqlSegments, apply, between, clear, clone, columnSqlInjectFilter, columnToSqlSegment, comment, eq, exists, first, formatParam, formatSqlMaybeWithParam, func, ge, getEntity, getEntityClass, getExpression, getParamAlias, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, gt, having, in, in, inExpression, inExpression, initNeed, inSql, instance, isNotNull, isNull, last, le, like, likeLeft, likeRight, likeValue, lt, maybeDo, ne, nested, not, not, notBetween, notExists, notIn, notIn, notInSql, notLike, or, or, orderBy, setEntity, setEntityClass, setParamAlias
getCustomSqlSegment, getSqlSelect, getSqlSet, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhere
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allEq, allEq, allEq, allEq, between, eq, ge, gt, le, like, likeLeft, likeRight, lt, ne, notBetween, notLike
apply, comment, exists, first, last, notExists, or
func, groupBy, having, in, in, inSql, isNotNull, isNull, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByDesc, orderByDesc
protected java.lang.String columnsToString(SFunction<T,?>... columns)
AbstractWrapper
columnsToString
在类中 AbstractWrapper<T,SFunction<T,?>,Children extends AbstractLambdaWrapper<T,Children>>
columns
- 多字段protected java.lang.String columnsToString(boolean onlyColumn, SFunction<T,?>... columns)
protected java.lang.String columnToString(SFunction<T,?> column)
AbstractWrapper
columnToString
在类中 AbstractWrapper<T,SFunction<T,?>,Children extends AbstractLambdaWrapper<T,Children>>
protected ColumnCache getColumnCache(SFunction<T,?> column)
如果获取不到列信息,那么本次条件组装将会失败
MybatisPlusException
- 获取不到列信息时抛出异常