Interface JPAODataPagingProvider

All Known Implementing Classes:
JPAExamplePagingProvider

public interface JPAODataPagingProvider
Author:
Oliver Grande
  • Method Summary

    Modifier and Type
    Method
    Description
    getFirstPage​(org.apache.olingo.server.api.uri.UriInfo uriInfo, Integer preferedPageSize, JPACountQuery countQuery, javax.persistence.EntityManager em)
    Based on the query the provider decides if a paging is required and return the first page.
    getNextPage​(String skiptoken)
    Returns the page related to a given skiptoken.
  • Method Details

    • getNextPage

      JPAODataPage getNextPage(String skiptoken)
      Returns the page related to a given skiptoken. If the skiptoken is not known the method returns null.
      Parameters:
      skiptoken -
      Returns:
    • getFirstPage

      JPAODataPage getFirstPage(org.apache.olingo.server.api.uri.UriInfo uriInfo, Integer preferedPageSize, JPACountQuery countQuery, javax.persistence.EntityManager em) throws org.apache.olingo.server.api.ODataApplicationException
      Based on the query the provider decides if a paging is required and return the first page.
      Parameters:
      uriInfo -
      Returns:
      Throws:
      org.apache.olingo.server.api.ODataApplicationException