public class OhEntityIterator<T extends BaseEntity> extends Object implements Iterator<T>, OhEntityCallback<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTINUE_LOADING_LIMIT |
static int |
LOAD_SIZE |
| Constructor and Description |
|---|
OhEntityIterator(OhEntityAccess<T> oda,
OhQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
callError(int statusCode,
String errorText,
Exception e) |
void |
callSuccess(OhEntityResult<T> result) |
int |
getCount() |
Exception |
getErrorStateException() |
String |
getErrorStateText() |
boolean |
hasError() |
boolean |
hasNext() |
boolean |
isErrorState() |
T |
next() |
void |
remove() |
void |
startLoading() |
public static int LOAD_SIZE
public static int CONTINUE_LOADING_LIMIT
public OhEntityIterator(OhEntityAccess<T> oda, OhQuery query)
public void startLoading()
public boolean hasError()
public void callSuccess(OhEntityResult<T> result)
callSuccess in interface OhEntityCallback<T extends BaseEntity>public void callError(int statusCode,
String errorText,
Exception e)
callError in interface OhEntityCallback<T extends BaseEntity>public boolean isErrorState()
public Exception getErrorStateException()
public String getErrorStateText()
public int getCount()
public boolean hasNext()
hasNext in interface Iterator<T extends BaseEntity>public T next()
next in interface Iterator<T extends BaseEntity>public void remove()
remove in interface Iterator<T extends BaseEntity>Copyright © 2017 Peter Helmich. All rights reserved.