StoreCursor

open class StoreCursor

Store Cursor We don't actually keep a cursor opened, instead, we wrap the query spec and page index

Constructors

Link copied to clipboard
constructor(smartStore: SmartStore, querySpec: QuerySpec)

Properties

Link copied to clipboard
val CURRENT_PAGE_INDEX: String = "currentPageIndex"
Link copied to clipboard
val CURRENT_PAGE_ORDERED_ENTRIES: String = "currentPageOrderedEntries"
Link copied to clipboard
val CURSOR_ID: String = "cursorId"
Link copied to clipboard
Link copied to clipboard
val PAGE_SIZE: String = "pageSize"
Link copied to clipboard
val TOTAL_ENTRIES: String = "totalEntries"
Link copied to clipboard
val TOTAL_PAGES: String = "totalPages"

Functions

Link copied to clipboard
Returns cursor meta data (page index, size etc) and data (entries in page) as a JSONObject
Link copied to clipboard
Returns cursor meta data (page index, size etc) and data (entries in page) as a FakeJSONObject NB: json data is never deserialized
Link copied to clipboard
open fun moveToPageIndex(newPageIndex: Int)