public class JsIDBIndex extends JsElementalMixinBase implements IDBIndex
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsIDBIndex() |
Modifier and Type | Method and Description |
---|---|
JsIDBRequest |
count()
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
|
JsIDBRequest |
count(IDBKeyRange range)
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
|
JsIDBRequest |
count(Object key)
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
|
JsIDBRequest |
get(IDBKeyRange key)
Returns an IDBRequest object, and, in a separate thread, finds either:
|
JsIDBRequest |
getKey(IDBKeyRange key)
Returns an IDBRequest object, and, in a separate thread, finds either:
|
JsIDBRequest |
getKey(Object key)
Returns an IDBRequest object, and, in a separate thread, finds either:
|
Object |
getKeyPath() |
String |
getName() |
JsIDBRequest |
getObject(Object key) |
JsIDBObjectStore |
getObjectStore() |
boolean |
isMultiEntry() |
boolean |
isUnique() |
JsIDBRequest |
openCursor()
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(IDBKeyRange range)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(IDBKeyRange range,
int direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(IDBKeyRange range,
String direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(Object key)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(Object key,
int direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openCursor(Object key,
String direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
JsIDBRequest |
openKeyCursor()
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(IDBKeyRange range)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(IDBKeyRange range,
int direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(IDBKeyRange range,
String direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(Object key)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(Object key,
int direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
JsIDBRequest |
openKeyCursor(Object key,
String direction)
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final Object getKeyPath()
getKeyPath
in interface IDBIndex
public final boolean isMultiEntry()
isMultiEntry
in interface IDBIndex
public final JsIDBObjectStore getObjectStore()
getObjectStore
in interface IDBIndex
public final JsIDBRequest count()
IDBIndex
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range. For example, if you want to see how many records are between keys 1000 and 2000 in an object store, you can write the following: var req = store.count(IDBKeyRange.bound(1000, 2000));
IDBRequest count ( in optional any key ) raises (IDBDatabaseException);
This method can raise a IDBDatabaseException with the following code:
Attribute | Description |
---|---|
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest count(IDBKeyRange range)
IDBIndex
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range. For example, if you want to see how many records are between keys 1000 and 2000 in an object store, you can write the following: var req = store.count(IDBKeyRange.bound(1000, 2000));
IDBRequest count ( in optional any key ) raises (IDBDatabaseException);
This method can raise a IDBDatabaseException with the following code:
Attribute | Description |
---|---|
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest count(Object key)
IDBIndex
Returns an IDBRequest object, and in a separate thread, returns the number of records within a key range. For example, if you want to see how many records are between keys 1000 and 2000 in an object store, you can write the following: var req = store.count(IDBKeyRange.bound(1000, 2000));
IDBRequest count ( in optional any key ) raises (IDBDatabaseException);
This method can raise a IDBDatabaseException with the following code:
Attribute | Description |
---|---|
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest get(IDBKeyRange key)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, finds either:
key
is a key range.If a value is successfully found, then a structured clone of it is created and set as the result
of the request object.
IDBRequest get ( in any key ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest getObject(Object key)
public final JsIDBRequest getKey(IDBKeyRange key)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, finds either:
key
is a key range.If a value is successfully found, then a structured clone of it is created and set as the result
of the request object.
IDBRequest getKey ( in any key ) raises (IDBDatabaseException);
This method can raise a IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest getKey(Object key)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, finds either:
key
is a key range.If a value is successfully found, then a structured clone of it is created and set as the result
of the request object.
IDBRequest getKey ( in any key ) raises (IDBDatabaseException);
This method can raise a IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
public final JsIDBRequest openCursor()
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(IDBKeyRange range)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(IDBKeyRange range, String direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(Object key)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(Object key, String direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(IDBKeyRange range, int direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openCursor(Object key, int direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to a structured clone of the referenced value.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor()
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(IDBKeyRange range)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(IDBKeyRange range, String direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(Object key)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(Object key, String direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(IDBKeyRange range, int direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
public final JsIDBRequest openKeyCursor(Object key, int direction)
IDBIndex
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index. The method sets the position of the cursor to the appropriate record, based on the specified direction.
value
of the cursor object is set to the value of the found record.code
set to NOT_FOUND_ERR
and a suitable message
.IDBRequest openKeyCursor ( in optional any? range, in optional unsigned short direction ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
Attribute | Description |
---|---|
TRANSACTION_INACTIVE_ERR | The index's transaction is not active. |
DATA_ERR | The key parameter was not a valid value. |
NOT_ALLOWED_ERR | The request was made on a source object that has been deleted or removed. |
openKeyCursor
in interface IDBIndex
Copyright © 2018. All rights reserved.