Class KeysetPageRequest

java.lang.Object
com.blazebit.persistence.deltaspike.data.PageRequest
com.blazebit.persistence.deltaspike.data.KeysetPageRequest
All Implemented Interfaces:
KeysetPageable, Pageable, Serializable

public class KeysetPageRequest extends PageRequest implements KeysetPageable
Like PageRequest but with support for keyset pagination.
Since:
1.2.0
Author:
Christian Beikov
See Also:
  • Constructor Details

    • KeysetPageRequest

      public KeysetPageRequest(int page, int pageSize, com.blazebit.persistence.KeysetPage keysetPage, Sort sort)
      Construct a page request with an optional keyset page that may be used for keyset pagination.
      Parameters:
      page - The page number, 0-based
      pageSize - The number of elements per page
      keysetPage - The keyset page
      sort - The sort specification
    • KeysetPageRequest

      public KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage, Pageable pageable)
      Construct a page request from a pageable with an optional keyset page that may be used for keyset pagination.
      Parameters:
      keysetPage - The keyset page
      pageable - The pageable
    • KeysetPageRequest

      public KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage, Sort sort)
      Construct a page request representing the current page via a keyset page and a sort specification.
      Parameters:
      keysetPage - The keyset page
      sort - The sort specification
    • KeysetPageRequest

      public KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage, Sort sort, int offset, int pageSize)
      Construct a page request with an optional keyset page that may be used for keyset pagination.
      Parameters:
      keysetPage - The keyset page
      sort - The sort specification
      offset - The offset number, 0-based
      pageSize - The number of elements per page
      Since:
      1.3.0
    • KeysetPageRequest

      public KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage, Sort sort, int offset, int pageSize, boolean withCountQuery, boolean withExtractAllKeysets)
      Construct a page request with an optional keyset page that may be used for keyset pagination and flags to enable the count query and keyset extraction.
      Parameters:
      keysetPage - The keyset page
      sort - The sort specification
      offset - The offset number, 0-based
      pageSize - The number of elements per page
      withCountQuery - True to enable the count query
      withExtractAllKeysets - True to enable extraction of all keysets
      Since:
      1.4.0
  • Method Details