Package com.blazebit.persistence
Interface KeysetBuilder<T>
-
- Type Parameters:
T
- The builder result type
public interface KeysetBuilder<T>
A builder for keysets to make use of keyset pagination. This is used for building a keyset declaratively.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
end()
Finishes the keyset builder.KeysetBuilder<T>
with(String expression, Object value)
Uses the given value as reference value for keyset pagination for the given expression.
-
-
-
Method Detail
-
with
KeysetBuilder<T> with(String expression, Object value)
Uses the given value as reference value for keyset pagination for the given expression. Normally the expression is one of the order by expressions used in the query.- Parameters:
expression
- The order by expression for which a value should be providedvalue
- The reference value from which the keyset pagination can start from- Returns:
- This keyset builder
-
end
T end()
Finishes the keyset builder.- Returns:
- The query builder
-
-