class IDBCursor[+S] extends IDBCursorReadOnly[S]
The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
The cursor has a source that indicates which index or object store it is iterating. It has a position within the range, and moves in a direction that is increasing or decreasing in the order of record keys. The cursor enables an application to asynchronously process all the records in the cursor's range.
- S
The type of
.source
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- IDBCursor
- IDBCursorReadOnly
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new IDBCursor()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
advance(count: Double): Unit
This method may raise a DOMException of one of the following types:
This method may raise a DOMException of one of the following types:
- Definition Classes
- IDBCursorReadOnly
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
continue(key: IDBKey = js.native): Unit
Sets cursor to key if specified, otherwise advances cursor by one.
Sets cursor to key if specified, otherwise advances cursor by one.
- Definition Classes
- IDBCursorReadOnly
- Note
calling this method twice from the same onsuccess handler results in a InvalidStateError DOMException being thrown on the second call W3C
-
def
delete(): IDBRequest[S, Unit]
Returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
-
def
direction: IDBCursorDirection
Is a DOMString that, on getting, returns the direction of traversal of the cursor.
Is a DOMString that, on getting, returns the direction of traversal of the cursor. See Constants for possible values.
- Definition Classes
- IDBCursorReadOnly
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
key: IDBKey
Returns the key for the record at the cursor's position.
Returns the key for the record at the cursor's position. If the cursor is outside its range, this is set to undefined. The cursor's key can be any data type.
- Definition Classes
- IDBCursorReadOnly
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
primaryKey: IDBKey
Returns the cursor's current effective key.
Returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its range, this is set to undefined. The cursor's primary key can be any data type.
- Definition Classes
- IDBCursorReadOnly
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
source: S
On getting, this object returns the IDBObjectStore or IDBIndex that the cursor is iterating.
On getting, this object returns the IDBObjectStore 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.
- Definition Classes
- IDBCursorReadOnly
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(value: IDBValue): IDBRequest[S, IDBKey]
Returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()