类 FieldFilterArgsImpl<T extends Table<?>>
java.lang.Object
org.babyfish.jimmer.sql.fetcher.impl.FieldFilterArgsImpl<T>
- 所有已实现的接口:
Filterable,Sortable,SubQueryProvider,FieldFilterArgs<T>,FieldFilterArgsImplementor<T>
public class FieldFilterArgsImpl<T extends Table<?>>
extends Object
implements FieldFilterArgsImplementor<T>
-
方法概要
修饰符和类型方法说明<SE,ST extends TableEx<SE>, TE, TT extends TableEx<TE>>
MutableSubQuerycreateAssociationSubQuery(AssociationTable<SE, ST, TE, TT> table) createSubQuery(TableProxy<?> table) <K> KgetKey()<K> Collection<K>getKeys()getTable()booleanisSorted()static <T extends Table<?>>
FieldFilterArgsImpl<T>of(AbstractMutableQueryImpl query, T table, Collection<Object> keys) orderBy(Expression<?>... expressions) query()Add some predicates(logical and)If the condition is true, add a predicateIf the condition is true, add a predicate
-
方法详细资料
-
of
public static <T extends Table<?>> FieldFilterArgsImpl<T> of(AbstractMutableQueryImpl query, T table, Collection<Object> keys) -
isSorted
public boolean isSorted() -
getTable
- 指定者:
getTable在接口中FieldFilterArgs<T extends Table<?>>
-
getKey
public <K> K getKey()- 指定者:
getKey在接口中FieldFilterArgs<T extends Table<?>>
-
getKeys
- 指定者:
getKeys在接口中FieldFilterArgs<T extends Table<?>>
-
where
从接口复制的说明:FilterableAdd some predicates(logical and)- 指定者:
where在接口中Filterable- 指定者:
where在接口中Sortable- 参数:
predicates- Predicates, everything one can be null- 返回:
- Return the current object to support chain programming style
-
whereIf
从接口复制的说明:FilterableIf the condition is true, add a predicatePlease look at this example about predicate is not `eq`, `ne`, `like` or `ilike`
The predicate `ge` which is not `eq`, `ne`, `like` or `ilike` cannot be created by null because `NullPointerException` will be thrown. At this time, you can usewhereIf(minPrice != null, table.price().ge(minPrice))Filterable.whereIf(boolean, Supplier)- 指定者:
whereIf在接口中Filterable- 指定者:
whereIf在接口中Sortable- 参数:
condition- The conditionpredicate- The predicate to be added, can be null- 返回:
- Return the current object to support chain programming style
-
whereIf
从接口复制的说明:FilterableIf the condition is true, add a predicate- 指定者:
whereIf在接口中Filterable- 指定者:
whereIf在接口中Sortable- 参数:
condition- The conditionblock- A lambda to create predicate when condition is true- 返回:
- Return the current object to support chain programming style
-
orderBy
-
orderBy
-
orderBy
-
createSubQuery
- 指定者:
createSubQuery在接口中SubQueryProvider
-
createAssociationSubQuery
public <SE,ST extends TableEx<SE>, MutableSubQuery createAssociationSubQueryTE, TT extends TableEx<TE>> (AssociationTable<SE, ST, TE, TT> table) - 指定者:
createAssociationSubQuery在接口中SubQueryProvider
-
query
- 指定者:
query在接口中FieldFilterArgsImplementor<T extends Table<?>>
-