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.
  • Method Summary

    Modifier and Type
    Method
    Description
    and(List<P> intermediate)
    AND-combine the intermediate predicates.
    compare(E propertyExpression, Object value)
    Create an equals-comparison object.
    compare(Sort.Order order, E propertyExpression, Object value)
    Create a comparison object according to the Sort.Order.
    Create an expression object from the given property path.
    or(List<P> intermediate)
    OR-combine the intermediate predicates.
  • Method Details

    • createExpression

      E createExpression(String property)
      Create an expression object from the given property path.
      Parameters:
      property - must not be null.
    • compare

      P compare(Sort.Order order, E propertyExpression, Object value)
      Create a comparison object according to the Sort.Order.
      Parameters:
      order - must not be null.
      propertyExpression - must not be null.
      value - the value to compare with. Must not be null.
      Returns:
      an object representing the comparison predicate.
    • compare

      P compare(E propertyExpression, @Nullable Object value)
      Create an equals-comparison object.
      Parameters:
      propertyExpression - must not be null.
      value - the value to compare with. Must not be null.
      Returns:
      an object representing the comparison predicate.
    • and

      P and(List<P> intermediate)
      AND-combine the intermediate predicates.
      Parameters:
      intermediate - the predicates to combine. Must not be null.
      Returns:
      a single predicate.
    • or

      P or(List<P> intermediate)
      OR-combine the intermediate predicates.
      Parameters:
      intermediate - the predicates to combine. Must not be null.
      Returns:
      a single predicate.