接口 Filterable
- 所有已知子接口:
FieldFilterArgs<T>,FieldFilterArgsImplementor<T>,FilterableImplementor,FilterArgs<P>,MutableDelete,MutableQuery,MutableRootQuery<T>,MutableSubQuery,MutableUpdate,Sortable,SortableImplementor
- 所有已知实现类:
AbstractMutableQueryImpl,AbstractMutableStatementImpl,FieldFilterArgsImpl,FilterArgsImpl,MutableDeleteImpl,MutableRootQueryImpl,MutableSubQueryImpl,MutableUpdateImpl
public interface Filterable
-
方法概要
修饰符和类型方法说明Add some predicates(logical and)default FilterableIf the condition is true, add a predicatedefault FilterableIf the condition is true, add a predicate
-
方法详细资料
-
where
Add some predicates(logical and)- 参数:
predicates- Predicates, everything one can be null- 返回:
- Return the current object to support chain programming style
-
whereIf
If 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))whereIf(boolean, Supplier)- 参数:
condition- The conditionpredicate- The predicate to be added, can be null- 返回:
- Return the current object to support chain programming style
-
whereIf
If the condition is true, add a predicate- 参数:
condition- The conditionblock- A lambda to create predicate when condition is true- 返回:
- Return the current object to support chain programming style
-