|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - row/item model object typepublic static interface IDataSource.IQueryResult<T>
Used to pass the total row count and the loaded item to the caller of
IDataSource.query(IDataSource.IQuery, IDataSource.IQueryResult) method.
| Field Summary | |
|---|---|
static int |
MORE_ITEMS
Constant indicating that there are more items left. |
static int |
NO_MORE_ITEMS
Constant indicating that there are no more items left. |
| Method Summary | |
|---|---|
void |
setItems(Iterator<? extends T> items)
Sets the actual loaded items. |
void |
setTotalCount(long count)
Sets the total items count. |
| Field Detail |
|---|
static final int MORE_ITEMS
static final int NO_MORE_ITEMS
| Method Detail |
|---|
void setTotalCount(long count)
MORE_ITEMS or NO_MORE_ITEMS constant can be used to indicate
whether there are more items left or not.
If the real items count is specified, it might affect the result of
IDataSource.IQuery.getCount(), so it is preferred to call this method before calling
setItems(Iterator).
count - the total count of itemsvoid setItems(Iterator<? extends T> items)
items - iterator able to iterate through the loaded items.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||