Package com.io7m.idstore.database.api

# Interface IdDatabasePagedQueryType<Q extends IdDatabaseQueriesType,T>

Type Parameters:
  `Q` - The type of required query interfaces
  `T` - The type of result values

All Known Subinterfaces:
  `IdDatabaseAdminSearchByEmailType`, `IdDatabaseAdminSearchType`, `IdDatabaseAuditEventsSearchType`, `IdDatabaseUserSearchByEmailType`, `IdDatabaseUserSearchType`

All Known Implementing Classes:
  `IdAbstractSearch`

public interface IdDatabasePagedQueryType<Q extends IdDatabaseQueriesType,T>
The type of paged queries.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IdPage<T>`
  `pageCurrent(Q queries)`
  Get data for the current page.
  `IdPage<T>`
  `pageNext(Q queries)`
  Get data for the next page.
  `IdPage<T>`
  `pagePrevious(Q queries)`
  Get data for the previous page.

- ## Method Details

  - ### pageCurrent

    IdPage<T> pageCurrent(Q queries) throws IdDatabaseException
    Get data for the current page.
    Parameters:
      `queries` - The query interface
    Returns:
      A page of results
    Throws:
      `IdDatabaseException` - On errors

  - ### pageNext

    IdPage<T> pageNext(Q queries) throws IdDatabaseException
    Get data for the next page. If the current page is the last page, the function acts as `pageCurrent(IdDatabaseQueriesType)`.
    Parameters:
      `queries` - The query interface
    Returns:
      A page of results
    Throws:
      `IdDatabaseException` - On errors

  - ### pagePrevious

    IdPage<T> pagePrevious(Q queries) throws IdDatabaseException
    Get data for the previous page. If the current page is the first page, the function acts as `pageCurrent(IdDatabaseQueriesType)`.
    Parameters:
      `queries` - The query interface
    Returns:
      A page of results
    Throws:
      `IdDatabaseException` - On errors