public interface IDataset
setSort(SortSpec)
or setFilter(java.util.Set)
is called.Modifier and Type | Method and Description |
---|---|
Type |
getItemType()
Returns the type of data returned by the load functions.
|
boolean |
isFilterSupported(Filter filter)
True if given filter criterion is supported.
|
boolean |
isSortSupported(ISort criterion)
True if given sort criterion is supported.
|
List<Object> |
load(int startIndex,
int count)
Load batch of items, mostly records or simple types.
|
void |
setFilter(Set<Filter> filters)
Sets the new filtering criteria.
|
void |
setSort(SortSpec sort)
Sets the new sorting criteria.
|
int |
size()
Gets number of items available through this query.
|
int size()
List<Object> load(int startIndex, int count)
setSort(SortSpec)
and/or setFilter(java.util.Set)
respectively.startIndex
- Starting index of the item list, must be 0 or greater.count
- Count of the items to be retrieved, must be 0 or greater.RecordHolder
s. Should never fail with out of bounds exception
- if the startIndex or count is out of bounds, the item is simply not returned. The list may or may not be mutable.void setSort(SortSpec sort)
ISort
and
must ignore sort criteria classes of unknown/unsupported types. Next call to load(int, int)
must return sorted filtered data.sort
- the sorting criteria, not null.void setFilter(Set<Filter> filters)
ISort
and
must ignore filter criteria classes of unknown/unsupported types. Next call to load(int, int)
must return properly filtered data.filters
- the filtering criteria, not null, may be empty. Silently ignore unsupported filters.boolean isSortSupported(ISort criterion)
criterion
- the criterion, not null.boolean isFilterSupported(Filter filter)
filter
- the filter, not null.Type getItemType()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.