Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PagingPredicate

This interface is a special Predicate which helps to get a page-by-page result of a query. It can be constructed with a page-size, an inner predicate for filtering, and a comparator for sorting.

Hierarchy

Index

Properties

classId

classId: number

Class id of the object.

factoryId

factoryId: number

Factory id of the object.

Methods

getAnchor

  • getAnchor(): [number, [any, any]]
  • Retrieve the anchor object which is the last value object on the previous page.

    Note: This method will return "null" anchor on the first page of the query result or if the predicate was not applied for the previous page number.

    Returns [number, [any, any]]

getComparator

  • Returns the comparator used by this predicate (if any).

    Returns Comparator

getPage

  • getPage(): number
  • Returns the current page value.

    Returns number

getPageSize

  • getPageSize(): number
  • Returns the page size.

    Returns number

nextPage

  • Sets the page value to next page.

    Returns PagingPredicate

previousPage

  • Sets the page value to previous page.

    Returns PagingPredicate

readData

setPage

  • Sets the current page value.

    Parameters

    • page: number

      page number

    Returns PagingPredicate

writeData

Generated using TypeDoc