org.cruxframework.crux.core.client.db
Class IDXFileCursor
java.lang.Object
org.cruxframework.crux.core.client.db.IDXCursor<String,Blob>
org.cruxframework.crux.core.client.db.IDXFileCursor
- All Implemented Interfaces:
- Cursor<String,Blob>, FileCursor
public class IDXFileCursor
- extends IDXCursor<String,Blob>
- implements FileCursor
CRUX INTERNAL CLASS. DO NOT USE IT DIRECTLY.
Indexed DB implementation for FileCursor Interface. Use the interface FileCursor instead.
- Author:
- Thiago da Rosa de Bustamante
|
Method Summary |
void |
continueCursor(String key)
Make cursor to go to the element referenced by the given key. |
String |
getKey()
Return the key of record pointed by the cursor. |
com.google.gwt.core.client.JsArrayMixed |
getNativeArrayKey()
Return the cursor key, as a native javascript object. |
Blob |
getValue()
Return the value of record pointed by the cursor. |
void |
update(Blob file)
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 |
IDXFileCursor
protected IDXFileCursor(IDBCursorWithValue idbCursor)
getNativeArrayKey
public com.google.gwt.core.client.JsArrayMixed getNativeArrayKey()
- Description copied from interface:
Cursor
- Return the cursor key, as a native javascript object.
- Specified by:
getNativeArrayKey in interface Cursor<String,Blob>- Specified by:
getNativeArrayKey in class IDXCursor<String,Blob>
- Returns:
- cursor key.
update
public void update(Blob file)
- Description copied from interface:
Cursor
- Update current record pointed by the cursor with the given value.
- Specified by:
update in interface Cursor<String,Blob>- Specified by:
update in class IDXCursor<String,Blob>
- Parameters:
file - new value to update
getKey
public String getKey()
- Description copied from interface:
Cursor
- Return the key of record pointed by the cursor.
- Specified by:
getKey in interface Cursor<String,Blob>- Specified by:
getKey in class IDXCursor<String,Blob>
- Returns:
- key of the element pointed by the cursor
getValue
public Blob getValue()
- Description copied from interface:
Cursor
- Return the value of record pointed by the cursor.
- Specified by:
getValue in interface Cursor<String,Blob>- Specified by:
getValue in class IDXCursor<String,Blob>
- Returns:
- value of the element pointed by the cursor
continueCursor
public void continueCursor(String key)
- Description copied from interface:
Cursor
- Make cursor to go to the element referenced by the given key. Cursor callback onSuccess method will be called
again, receiving the new value where cursor points after the advance.
- Specified by:
continueCursor in interface Cursor<String,Blob>- Specified by:
continueCursor in class IDXCursor<String,Blob>
- Parameters:
key - key of the element to be pointed by the cursor.
Copyright © 2014. All rights reserved.