|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.db.IDXCursor<K,V>
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>
CRUX INTERNAL CLASS. DO NOT USE IT DIRECTLY.
Indexed DB implementation for Cursor Interface. Use the interface Cursor instead.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cruxframework.crux.core.client.db.Cursor |
|---|
Cursor.CursorDirection |
| Field Summary | |
|---|---|
protected IDBCursorWithValue |
idbCursor
|
| Constructor Summary | |
|---|---|
protected |
IDXCursor(IDBCursorWithValue idbCursor)
|
| Method Summary | ||
|---|---|---|
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)
|
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IDBCursorWithValue idbCursor
| Constructor Detail |
|---|
protected IDXCursor(IDBCursorWithValue idbCursor)
| Method Detail |
|---|
public void advance(int count)
Cursor
advance in interface Cursor<K,V>count - number of items to advancepublic void continueCursor()
Cursor
continueCursor in interface Cursor<K,V>public void delete()
Cursor
delete in interface Cursor<K,V>public <T extends com.google.gwt.core.client.JavaScriptObject> T getNativeValue()
public boolean hasValue()
Cursor
hasValue in interface Cursor<K,V>public Cursor.CursorDirection getDirection()
Cursor
getDirection in interface Cursor<K,V>public static IDBCursor.IDBCursorDirection getNativeCursorDirection(Cursor.CursorDirection direction)
public abstract com.google.gwt.core.client.JsArrayMixed getNativeArrayKey()
Cursor
getNativeArrayKey in interface Cursor<K,V>public abstract void update(V value)
Cursor
update in interface Cursor<K,V>value - new value to updatepublic abstract K getKey()
Cursor
getKey in interface Cursor<K,V>public abstract V getValue()
Cursor
getValue in interface Cursor<K,V>public abstract void continueCursor(K key)
Cursor
continueCursor in interface Cursor<K,V>key - key of the element to be pointed by the cursor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||