Interface MappingOffsetQuerySpecification<R>

Type Parameters:
R - the type of object to be mapped from the ResultSet
All Superinterfaces:
QuerySpecification<R>

public interface MappingOffsetQuerySpecification<R> extends QuerySpecification<R>
MappingOffsetQuerySpecification represents a query specification with offset-based pagination functionality and mapping capabilities. It extends the QuerySpecification interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Default limit value for a query specification.
    static final long
    Default offset value for a query specification.
    static final com.helixframework.pagination.sort.SortOrder
    Default sort order value for a query specification.
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Retrieves the limit of the query.
    Retrieves the ResultSetMapper associated with this query specification.
    default long
    Retrieves the offset of the query.
    default com.helixframework.pagination.sort.SortOrder
    Retrieves the sort order of the query.

    Methods inherited from interface com.helixframework.db.repository.QuerySpecification

    execute, getName, getTxId
  • Field Details

    • DEFAULT_LIMIT

      static final long DEFAULT_LIMIT
      Default limit value for a query specification.
      See Also:
    • DEFAULT_OFFSET

      static final long DEFAULT_OFFSET
      Default offset value for a query specification.
      See Also:
    • DEFAULT_SORT_ORDER

      static final com.helixframework.pagination.sort.SortOrder DEFAULT_SORT_ORDER
      Default sort order value for a query specification. The default sort order is set to ASCENDING.
  • Method Details

    • getLimit

      default long 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
    • getMapper

      ResultSetMapper<R> getMapper()
      Retrieves the ResultSetMapper associated with this query specification. Use the ResultSetMapper to map a ResultSet to an object or a list of objects.
      Returns:
      the ResultSetMapper associated with this query specification