[ https://issues.apache.org/jira/browse/ISIS-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569869#comment-13569869 ]
Kevin Meyer commented on ISIS-220: ---------------------------------- Simple example of usage: public List<SimpleClass> someSimpleClasses(final long startIndex, final long rowCount) { Query<SimpleClass> query = new QueryFindAllPaged<SimpleClass>(SimpleClass.class, startIndex, rowCount); return allMatches(query); } > Add "Paging" support to Objectstore API > --------------------------------------- > > Key: ISIS-220 > URL: https://issues.apache.org/jira/browse/ISIS-220 > Project: Isis > Issue Type: New Feature > Components: Core > Affects Versions: core-1.0.0 > Reporter: Kevin Meyer > Assignee: Kevin Meyer > Fix For: core-2.0.0 > > > The > org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.ObjectStorePersistence > method "boolean hasInstances(ObjectSpecification specification);" could do > with a "boolean hasInstances(ObjectSpecification specification, final int > start, final int count);" method to support paging through results. > This impacts all object stores. > The "org.apache.isis.applib.AbstractContainedObject" and > "org.apache.isis.applib.DomainObjectContainer" methods "protected <T> List<T> > allInstances(final Class<T> ofType)" and all the "allMatches(*)" should also > get paging equivalents. This will expose paging to services and all POJOs via > the inject DomainObjectContainer container. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira