public class StoreCursor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_PAGE_INDEX |
static java.lang.String |
CURRENT_PAGE_ORDERED_ENTRIES |
static java.lang.String |
CURSOR_ID |
int |
cursorId |
static java.lang.String |
PAGE_SIZE |
static java.lang.String |
TOTAL_ENTRIES |
static java.lang.String |
TOTAL_PAGES |
Constructor and Description |
---|
StoreCursor(SmartStore smartStore,
QuerySpec querySpec) |
Modifier and Type | Method and Description |
---|---|
JSONObject |
getDataDeserialized(SmartStore smartStore)
Returns cursor meta data (page index, size etc) and data (entries in page) as a JSONObject
|
com.salesforce.androidsdk.smartstore.store.FakeJSONObject |
getDataSerialized(SmartStore smartStore)
Returns cursor meta data (page index, size etc) and data (entries in page) as a FakeJSONObject
NB: json data is never deserialized
|
void |
moveToPageIndex(int newPageIndex) |
public static final java.lang.String TOTAL_ENTRIES
public static final java.lang.String TOTAL_PAGES
public static final java.lang.String PAGE_SIZE
public static final java.lang.String CURRENT_PAGE_INDEX
public static final java.lang.String CURRENT_PAGE_ORDERED_ENTRIES
public static final java.lang.String CURSOR_ID
public final int cursorId
public StoreCursor(SmartStore smartStore, QuerySpec querySpec)
smartStore
- querySpec
- JSONException
public void moveToPageIndex(int newPageIndex)
newPageIndex
- public com.salesforce.androidsdk.smartstore.store.FakeJSONObject getDataSerialized(SmartStore smartStore)
smartStore
- public JSONObject getDataDeserialized(SmartStore smartStore) throws JSONException
smartStore
- JSONException