Hi all, I'm looking at what is required to add paging support to the datastore API and expose it to the user / viewer.
Use case 1: a viewer finds a property that is a collection. When rendering the collection, it can either render all items, or just a subsection. Use case 2: The domain object wants to provide just the first (few) instances from a dataset (instead of all of them) for a "choicesXxxx" method. There'll be others.. In any case, I see two immediate requirements: 1) extend the PersistenceQuery implementations to include a PersistenceQueryPaged, which can be used by AbstractContainedObject, 2) Extend DomainObjectContainer to expose a paged method, such as "pagedInstances(int start, int count, Class<T> ofType)" Does this sound right? Any better suggestions? I'll leave off mechanisms to track current page, total page count, etc, for the moment (although it does imply a "countInstancesOf" method). I presume the @Paged annotation can be picked up and used to guide the paging process... Regards, Kevin -- Kevin Meyer
