public class LambdaQueryWrapper<T> extends AbstractLambdaWrapper<T,LambdaQueryWrapper<T>> implements Query<LambdaQueryWrapper<T>,T,SFunction<T,?>>
AbstractWrapper.DoSomething
expression, lastSql, paramAlias, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, typedThis
构造器和说明 |
---|
LambdaQueryWrapper() |
LambdaQueryWrapper(java.lang.Class<T> entityClass) |
LambdaQueryWrapper(T entity) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
条件清空
|
java.lang.String |
getSqlSelect()
查询条件 SQL 片段
|
protected LambdaQueryWrapper<T> |
instance()
用于生成嵌套 sql
故 sqlSelect 不向下传递
|
LambdaQueryWrapper<T> |
select(java.lang.Class<T> entityClass,
java.util.function.Predicate<TableFieldInfo> predicate)
过滤查询的字段信息(主键除外!)
|
LambdaQueryWrapper<T> |
select(SFunction<T,?>... columns)
SELECT 部分 SQL 设置
|
columnsToString, columnsToString, columnToString, columnToString, getColumnCache
addCondition, addNestedCondition, allEq, allEq, and, and, appendSqlSegments, apply, between, 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, 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, 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
public LambdaQueryWrapper()
public LambdaQueryWrapper(T entity)
public LambdaQueryWrapper(java.lang.Class<T> entityClass)
@SafeVarargs public final LambdaQueryWrapper<T> select(SFunction<T,?>... columns)
public LambdaQueryWrapper<T> select(java.lang.Class<T> entityClass, java.util.function.Predicate<TableFieldInfo> predicate)
例1: 只要 java 字段名以 "test" 开头的 -> select(i -> i.getProperty().startsWith("test"))
例2: 只要 java 字段属性是 CharSequence 类型的 -> select(TableFieldInfo::isCharSequence)
例3: 只要 java 字段没有填充策略的 -> select(i -> i.getFieldFill() == FieldFill.DEFAULT)
例4: 要全部字段 -> select(i -> true)
例5: 只要主键字段 -> select(i -> false)
public java.lang.String getSqlSelect()
Query
getSqlSelect
在接口中 Query<LambdaQueryWrapper<T>,T,SFunction<T,?>>
getSqlSelect
在类中 Wrapper<T>
protected LambdaQueryWrapper<T> instance()
故 sqlSelect 不向下传递
instance
在类中 AbstractWrapper<T,SFunction<T,?>,LambdaQueryWrapper<T>>
public void clear()
Wrapper
clear
在类中 AbstractWrapper<T,SFunction<T,?>,LambdaQueryWrapper<T>>