Package com.helixframework.db.repository
Interface OffsetQuerySpecification<T>
- All Superinterfaces:
QuerySpecification<T>
Represents a query specification with offset and limit functionality.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault limit value for a query specification.static final longDefault offset value for a query specification.static final com.helixframework.pagination.sort.SortOrderDefault sort order value for a query specification. -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetLimit()Retrieves the limit of the query.default longRetrieves the offset of the query.default com.helixframework.pagination.sort.SortOrderRetrieves the sort order of the query.Methods inherited from interface com.helixframework.db.repository.QuerySpecification
execute, getName, getTxId
-
Field Details
-
DEFAULT_LIMIT
static final int DEFAULT_LIMITDefault limit value for a query specification.- See Also:
-
DEFAULT_OFFSET
static final long DEFAULT_OFFSETDefault offset value for a query specification.- See Also:
-
DEFAULT_SORT_ORDER
static final com.helixframework.pagination.sort.SortOrder DEFAULT_SORT_ORDERDefault sort order value for a query specification. The default sort order is set to ASCENDING.
-
-
Method Details
-
getLimit
default int getLimit()Retrieves the limit of the query.- Returns:
- the limit of the query
-
getOffset
default long getOffset()Retrieves the offset of the query.- Returns:
- the offset of the query
-
getSortOrder
default com.helixframework.pagination.sort.SortOrder getSortOrder()Retrieves the sort order of the query.- Returns:
- the sort order of the query
-