[ 
https://issues.apache.org/jira/browse/OLINGO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885261#comment-13885261
 ] 

Michael Bolz commented on OLINGO-112:
-------------------------------------

Hi Gaurav,

the {{valueAccess}} object is just a helper to provide a generic access to the 
values of an object (via its getter/setter methods).
In the example above it is to read the key property of the object and construct 
the skip token.

For our case you have to know how to skip the first _x_ elements for 
_pagination_.
As example if you want 100 entities on first page and (with id 1 to 100) your 
skip token might be _101_ (also see [this 
comment|https://issues.apache.org/jira/browse/OLINGO-112?focusedCommentId=13866422&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13866422]).

Normally it is best practice to extend the {{ODataSingleProcessor}} and 
override the supported methods. Just like the {{ListsProcessor}} in the 
reference scenario. The {{ProviderFacadeImpl}} should not be extended.

Probably you should take a look into the {{odata2-lib/odata-ref}} module and 
their the {{ListsProcessor}} as example.
Furthermore I can recommend the [basic read tutorial on 
Olingo.org|http://olingo.incubator.apache.org/doc/tutorials/basicread.html].
I hope this help to clarify how to start with an OData service.

Kind regards,
Michael

> how to do pagination
> --------------------
>
>                 Key: OLINGO-112
>                 URL: https://issues.apache.org/jira/browse/OLINGO-112
>             Project: Olingo
>          Issue Type: Question
>            Reporter: Gaurav Garg
>            Assignee: Michael Bolz
>
> I want to implement the pagination in my olingo application in which first 
> few records should be available and for next records there should be link 
> available.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to