@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="IDBObjectStore")
public class IDBObjectStore
extends JsObject
implements IDBRequestSource, IDBCursorSource
| Modifier and Type | Field and Description |
|---|---|
@JsNonNull java.lang.String |
name
A DOMString containing the object store's name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IDBObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull 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.
|
@JsNonNull 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:
|
@JsNonNull 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.
|
@JsNonNull IDBRequest |
count()
An IDBRequest object on which subsequent events related to this operation are fired.
|
@JsNonNull IDBRequest |
count(java.lang.Object query)
An IDBRequest object on which subsequent events related to this operation are fired.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull IDBIndex |
createIndex(java.lang.String name,
java.lang.String... keyPath)
Note that this method must be called only from a VersionChange transaction mode callback.
|
@JsNonNull IDBIndex |
createIndex(java.lang.String name,
java.lang.String keyPath)
Note that this method must be called only from a VersionChange transaction mode callback.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull IDBRequest |
openCursor()
To determine if the add operation has completed successfully, listen for the results’s success event.
|
@JsNonNull IDBRequest |
openCursor(java.lang.Object query)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
@JsNonNull 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.
|
@JsNonNull IDBRequest |
openKeyCursor()
To determine if the add operation has completed successfully, listen for the results’s success event.
|
@JsNonNull IDBRequest |
openKeyCursor(java.lang.Object query)
To determine if the add operation has completed successfully, listen for the results’s success event.
|
@JsNonNull 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.
|
@JsNonNull IDBRequest |
put(java.lang.Object value)
The put method is an update or insert method.
|
@JsNonNull 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, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull 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()
public @JsNonNull IDBRequest add(@Nullable java.lang.Object value, @Nullable java.lang.Object key)
public @JsNonNull IDBRequest add(@Nullable java.lang.Object value)
public @JsNonNull IDBRequest clear()
public @JsNonNull IDBRequest count(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest count()
public @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String keyPath, @Nonnull IDBIndexParameters options)
public @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull JsArray<java.lang.String> keyPath, @Nonnull IDBIndexParameters options)
public @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String[] keyPath, @Nonnull IDBIndexParameters options)
public @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String keyPath)
public @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull JsArray<java.lang.String> keyPath)
@JsOverlay public final @JsNonNull IDBIndex createIndex(@Nonnull java.lang.String name, @Nonnull java.lang.String... keyPath)
public @JsNonNull IDBRequest delete(@Nullable java.lang.Object query)
public void deleteIndex(@Nonnull
java.lang.String name)
public @JsNonNull IDBRequest get(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest getAll(@Nullable java.lang.Object query, int count)
public @JsNonNull IDBRequest getAll(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest getAll()
public @JsNonNull IDBRequest getAllKeys(@Nullable java.lang.Object query, int count)
public @JsNonNull IDBRequest getAllKeys(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest getAllKeys()
public @JsNonNull IDBRequest getKey(@Nullable java.lang.Object query)
public @JsNonNull IDBIndex index(@Nonnull java.lang.String name)
public @JsNonNull IDBRequest openCursor(@Nullable java.lang.Object query, @IDBCursorDirection @Nonnull java.lang.String direction)
public @JsNonNull IDBRequest openCursor(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest openCursor()
public @JsNonNull IDBRequest openKeyCursor(@Nullable java.lang.Object query, @IDBCursorDirection @Nonnull java.lang.String direction)
public @JsNonNull IDBRequest openKeyCursor(@Nullable java.lang.Object query)
public @JsNonNull IDBRequest openKeyCursor()
public @JsNonNull IDBRequest put(@Nullable java.lang.Object value, @Nullable java.lang.Object key)
public @JsNonNull IDBRequest put(@Nullable java.lang.Object value)