com.bowstreet.builders.webapp.methods
Interface CollectionDataRetriever

All Superinterfaces:
DataRetriever
All Known Implementing Classes:
BeanCollectionDataRetriever

public interface CollectionDataRetriever
extends DataRetriever

Interface defining DataRetriever objects which can return subsets of a java.util.Collection. Objects implementing this interface are used by the Paging Assistant builder to provide paged access to Collection-based data sources.


Method Summary
 java.util.Collection getRowSubset(int start, int n)
          Return a subset of the Collection managed by the class.
 
Methods inherited from interface com.bowstreet.builders.webapp.methods.DataRetriever
getData, getFetchSize, getRowCount
 

Method Detail

getRowSubset

java.util.Collection getRowSubset(int start,
                                  int n)
Return a subset of the Collection managed by the class.

Parameters:
start - The starting index of the Collection from which the subset is to be extracted. The index is zero-based.
n - The number of consecutive items from the collection to be included in the subset.
Returns:
A subset of the Collection or an empty non-null Collection if start is less than zero, n is less than zero, or start is greater than or equal to the number of items in the Collection.


Copyright © 2009 IBM. All Rights Reserved.