Interface KeysetScrollDelegate.QueryStrategy<E,P>
- Type Parameters:
E- property path expression type.P- predicate type.
- Enclosing class:
KeysetScrollDelegate
public static interface KeysetScrollDelegate.QueryStrategy<E,P>
Adapter to construct scroll queries.
- Since:
- 3.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescription@Nullable PAND-combine theintermediatepredicates.Create an equals-comparison object.compare(Sort.Order order, E propertyExpression, @Nullable Object value) Create a comparison object according to theSort.Order.createExpression(String property) Create an expression object from the givenpropertypath.@Nullable POR-combine theintermediatepredicates.
-
Method Details
-
createExpression
-
compare
Create a comparison object according to theSort.Order.Specifically, consider three cases:
- Value is not
null: Compare according toSort.Order. Also, when ordering withNULLS LAST, allowNULLvalues in the predicate - Value is
nulland null values are not the maximum value: restrict toIS NOT NULL - Otherwise: Disjunction (cannot compare)
- Parameters:
order- must not be null.propertyExpression- must not be null.value- the value to compare with. Can be null.- Returns:
- an object representing the comparison predicate.
- Value is not
-
compare
-
and
-
or
-