K - The type of the key used to identify objects into the cursor.V - The type of the objects referenced by this cursorpublic abstract class IDXCursor<K,V> extends Object implements Cursor<K,V>
Cursor instead.Cursor.CursorDirection| Modifier and Type | Field and Description |
|---|---|
protected IDBCursorWithValue |
idbCursor |
| Modifier | Constructor and Description |
|---|---|
protected |
IDXCursor(IDBCursorWithValue idbCursor) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(int count)
Advance the cursor current position by a number of positions.
|
void |
continueCursor()
Make cursor to go to the next element.
|
abstract void |
continueCursor(K key)
Make cursor to go to the element referenced by the given key.
|
void |
delete()
Delete the current value, pointed by the cursor, from the database.
|
Cursor.CursorDirection |
getDirection()
Direction of iteration used by this cursor.
|
abstract K |
getKey()
Return the key of record pointed by the cursor.
|
abstract com.google.gwt.core.client.JsArrayMixed |
getNativeArrayKey()
Return the cursor key, as a native javascript object.
|
static IDBCursor.IDBCursorDirection |
getNativeCursorDirection(Cursor.CursorDirection direction) |
<T extends com.google.gwt.core.client.JavaScriptObject> |
getNativeValue() |
abstract V |
getValue()
Return the value of record pointed by the cursor.
|
boolean |
hasValue()
Return true if cursor points to a valid value.
|
abstract void |
update(V value)
Update current record pointed by the cursor with the given value.
|
protected final IDBCursorWithValue idbCursor
protected IDXCursor(IDBCursorWithValue idbCursor)
public void advance(int count)
Cursorpublic void continueCursor()
CursorcontinueCursor in interface Cursor<K,V>public void delete()
Cursorpublic <T extends com.google.gwt.core.client.JavaScriptObject> T getNativeValue()
public boolean hasValue()
Cursorpublic Cursor.CursorDirection getDirection()
CursorgetDirection in interface Cursor<K,V>public static IDBCursor.IDBCursorDirection getNativeCursorDirection(Cursor.CursorDirection direction)
public abstract com.google.gwt.core.client.JsArrayMixed getNativeArrayKey()
CursorgetNativeArrayKey in interface Cursor<K,V>public abstract void update(V value)
Cursorpublic abstract K getKey()
Cursorpublic abstract V getValue()
Cursorpublic abstract void continueCursor(K key)
CursorcontinueCursor in interface Cursor<K,V>key - key of the element to be pointed by the cursor.Copyright © 2015. All rights reserved.