
public class JsIDBCursor extends JsElementalMixinBase implements IDBCursor
NEXT, NEXT_NO_DUPLICATE, PREV, PREV_NO_DUPLICATESVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsIDBCursor() |
| Modifier and Type | Method and Description |
|---|---|
JsIDBRequest |
_delete()
Returns an
IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position. |
void |
advance(int count)
Sets the number times a cursor should move its position forward.
|
void |
continueFunction() |
void |
continueFunction(Object key) |
String |
getDirection()
On getting, returns the direction of traversal of the cursor.
|
Object |
getKey()
Returns the key for the record at the cursor's position.
|
Object |
getPrimaryKey()
Returns the cursor's current effective key.
|
Object |
getSource()
On getting, returns the
IDBObjectStore or IDBIndex that the cursor is iterating. |
JsIDBRequest |
update(Object value)
Returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final String getDirection()
IDBCursorgetDirection in interface IDBCursorpublic final Object getKey()
IDBCursorundefined.public final Object getPrimaryKey()
IDBCursorundefined.getPrimaryKey in interface IDBCursorpublic final Object getSource()
IDBCursorIDBObjectStore or IDBIndex that the cursor is iterating. This function never returns null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.public final void advance(int count)
IDBCursorSets the number times a cursor should move its position forward.
IDBRequest advance ( in long count ) raises (IDBDatabaseException);
voidThis method can raise an IDBDatabaseException with the following codes:
| Exception | Description |
|---|---|
NON_TRANSIENT_ERR | The value passed into the |
NOT_ALLOWED_ERR | The cursor was created using openKeyCursor(), or if it is currently being iterated (you cannot call this method again until the new cursor data has been loaded), or if it has iterated past the end of its range. |
TRANSACTION_INACTIVE_ERR | The transaction that this cursor belongs to is inactive. |
public final void continueFunction()
continueFunction in interface IDBCursorpublic final void continueFunction(Object key)
continueFunction in interface IDBCursorpublic final JsIDBRequest _delete()
IDBCursorReturns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position. Once the record is deleted, the cursor's value is set to null.
IDBRequest delete ( ) raises (IDBDatabaseException);
IDBRequestresult attribute is set to undefined.This method can raise an IDBDatabaseException with the following code:
| Exception | Description |
|---|---|
NOT_ALLOWED_ERR | The cursor was created using openKeyCursor(), or if it is currently being iterated (you cannot call this method again until the new cursor data has been loaded), or if it has iterated past the end of its range. |
READ_ONLY_ERR | The cursor is in a transaction whose mode is READ_ONLY. |
TRANSACTION_INACTIVE_ERR | The transaction that this cursor belongs to is inactive. |
public final JsIDBRequest update(Object value)
IDBCursorReturns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store. If the cursor points to a record that has just been deleted, a new record is created.
IDBRequest update ( in any value ) raises (IDBDatabaseException, DOMException);
IDBRequestThis method can raise an IDBDatabaseException with the following codes:
| Exception | Description |
|---|---|
DATA_ERR | The underlying object store uses in-line keys, and the key for the cursor's position does not match the |
NOT_ALLOWED_ERR | The cursor was created using openKeyCursor(), or if it is currently being iterated (you cannot call this method again until the new cursor data has been loaded), or if it has iterated past the end of its range. |
READ_ONLY_ERR | The cursor is in a transaction whose mode is READ_ONLY. |
TRANSACTION_INACTIVE_ERR | The transaction that this cursor belongs to is inactive. |
It can also raise a DOMException with the following code:
| Attribute | Description |
|---|---|
DATA_CLONE_ERR | If the value could not be cloned. |
Copyright © 2016. All rights reserved.