@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="IDBObjectStore")
public class IDBObjectStore
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name
A DOMString containing the object store's name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IDBObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
IDBRequest |
add(java.lang.Object value)
To determine if the add operation has completed successfully, listen for the transaction’s complete event in addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the success event fires.
|
IDBRequest |
add(java.lang.Object value,
java.lang.Object key)
To determine if the add operation has completed successfully, listen for the transaction’s complete event in addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the success event fires.
|
boolean |
autoIncrement()
A Boolean:
|
IDBRequest |
clear()
Clearing an object store consists of removing all records from the object store and removing all records in indexes that reference the object store.
|
IDBRequest |
count()
An IDBRequest object on which subsequent events related to this operation are fired.
|
IDBRequest |
count(java.lang.Object query)
An IDBRequest object on which subsequent events related to this operation are fired.
|
IDBIndex |
createIndex(java.lang.String name,
JsArray<java.lang.String> keyPath)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBIndex |
createIndex(java.lang.String name,
JsArray<java.lang.String> keyPath,
IDBIndexParameters options)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBIndex |
createIndex(java.lang.String name,
java.lang.String keyPath)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBIndex |
createIndex(java.lang.String name,
java.lang.String[] keyPath)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBIndex |
createIndex(java.lang.String name,
java.lang.String[] keyPath,
IDBIndexParameters options)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBIndex |
createIndex(java.lang.String name,
java.lang.String keyPath,
IDBIndexParameters options)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBRequest |
delete(java.lang.Object query)
An IDBRequest object on which subsequent events related to this operation are fired.
|
void |
deleteIndex(java.lang.String name)
Note that this method must be called only from a VersionChange transaction mode callback.
|
IDBRequest |
get(java.lang.Object query)
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAll()
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAll(java.lang.Object query)
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAll(java.lang.Object query,
int count)
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAllKeys()
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAllKeys(java.lang.Object query)
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBRequest |
getAllKeys(java.lang.Object query,
int count)
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(java.lang.Object query)
If a key is successfully found, then a structured clone of it is created and set as the result of the request object.
|
IDBIndex |
index(java.lang.String name)
An IDBIndex object for accessing the index.
|
DOMStringList |
indexNames()
A DOMStringList.
|
jsinterop.base.Any |
keyPath()
If this property is null, the application must provide a key for each modification operation.
|
IDBRequest |
openCursor()
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
openCursor(java.lang.Object query)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
openCursor(java.lang.Object query,
java.lang.String direction)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
openKeyCursor()
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
openKeyCursor(java.lang.Object query)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
openKeyCursor(java.lang.Object query,
java.lang.String direction)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
IDBRequest |
put(java.lang.Object value)
The put method is an update or insert method.
|
IDBRequest |
put(java.lang.Object value,
java.lang.Object key)
The put method is an update or insert method.
|
IDBTransaction |
transaction()
An IDBTransaction object.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nonnull public java.lang.String name
@JsProperty(name="autoIncrement") public boolean autoIncrement()
@JsProperty(name="indexNames") @Nonnull public DOMStringList indexNames()
@JsProperty(name="keyPath") @Nullable public jsinterop.base.Any keyPath()
@JsProperty(name="transaction") @Nonnull public IDBTransaction transaction()
@Nonnull public IDBRequest add(@Nullable java.lang.Object value, @Nullable java.lang.Object key)
@Nonnull public IDBRequest add(@Nullable java.lang.Object value)
@Nonnull public IDBRequest clear()
@Nonnull public IDBRequest count(@Nullable java.lang.Object query)
@Nonnull public IDBRequest count()
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String keyPath, @Nonnull IDBIndexParameters options)
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull JsArray<java.lang.String> keyPath, @Nonnull IDBIndexParameters options)
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String[] keyPath, @Nonnull IDBIndexParameters options)
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String keyPath)
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull JsArray<java.lang.String> keyPath)
@Nonnull public IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String[] keyPath)
@Nonnull public IDBRequest delete(@Nullable java.lang.Object query)
public void deleteIndex(@Nonnull
java.lang.String name)
@Nonnull public IDBRequest get(@Nullable java.lang.Object query)
@Nonnull public IDBRequest getAll(@Nullable java.lang.Object query, int count)
@Nonnull public IDBRequest getAll(@Nullable java.lang.Object query)
@Nonnull public IDBRequest getAll()
@Nonnull public IDBRequest getAllKeys(@Nullable java.lang.Object query, int count)
@Nonnull public IDBRequest getAllKeys(@Nullable java.lang.Object query)
@Nonnull public IDBRequest getAllKeys()
@Nonnull public IDBRequest getKey(@Nullable java.lang.Object query)
@Nonnull public IDBIndex index(@Nonnull java.lang.String name)
@Nonnull public IDBRequest openCursor(@Nullable java.lang.Object query, @IDBCursorDirection @Nonnull java.lang.String direction)
@Nonnull public IDBRequest openCursor(@Nullable java.lang.Object query)
@Nonnull public IDBRequest openCursor()
@Nonnull public IDBRequest openKeyCursor(@Nullable java.lang.Object query, @IDBCursorDirection @Nonnull java.lang.String direction)
@Nonnull public IDBRequest openKeyCursor(@Nullable java.lang.Object query)
@Nonnull public IDBRequest openKeyCursor()
@Nonnull public IDBRequest put(@Nullable java.lang.Object value, @Nullable java.lang.Object key)
@Nonnull public IDBRequest put(@Nullable java.lang.Object value)