Class JPAExamplePagingProvider
java.lang.Object
com.sap.olingo.jpa.processor.core.api.example.JPAExamplePagingProvider
- All Implemented Interfaces:
JPAODataPagingProvider
-
Constructor Summary
ConstructorsConstructorDescriptionJPAExamplePagingProvider(Map<String,Integer> pageSizes)JPAExamplePagingProvider(Map<String,Integer> pageSizes, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptiongetFirstPage(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.
-
Constructor Details
-
JPAExamplePagingProvider
-
JPAExamplePagingProvider
-
-
Method Details
-
getNextPage
Description copied from interface:JPAODataPagingProviderReturns the page related to a given skiptoken. If the skiptoken is not known the method returns null.- Specified by:
getNextPagein interfaceJPAODataPagingProvider- Returns:
-
getFirstPage
public JPAODataPage getFirstPage(org.apache.olingo.server.api.uri.UriInfo uriInfo, Integer preferedPageSize, JPACountQuery countQuery, javax.persistence.EntityManager em) throws org.apache.olingo.server.api.ODataApplicationExceptionDescription copied from interface:JPAODataPagingProviderBased on the query the provider decides if a paging is required and return the first page.- Specified by:
getFirstPagein interfaceJPAODataPagingProvider- Returns:
- Throws:
org.apache.olingo.server.api.ODataApplicationException
-