[
https://issues.apache.org/jira/browse/ISIS-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Meyer resolved ISIS-220.
------------------------------
Resolution: Fixed
Done and done.
Still only a simple implementation in the SQL-OS (jdbc objectstore).
Example usage:
public List<SimpleClass> someSimpleClasses(final long startIndex, final
long rowCount) {
return allInstances(SimpleClass.class, startIndex, rowCount);
}
Which calls:
protected <T> List<T> allInstances(final Class<T> ofType, long... range) {
return getContainer().allInstances(ofType, range);
}
If the optional range parameters are used, the dataset returned starts
from (0 based) index, and consists of only up to count items.
> 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