@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="IDBTransaction")
public class IDBTransaction
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onabort
In the following code snippet, we open a read/write transaction on our database and add some data to an object store.
|
EventHandler |
oncomplete
The oncomplete event handler of the IDBTransaction interface handles the complete event, fired when the transaction successfully completes.
|
EventHandler |
onerror
The onerror event handler of the IDBTransaction interface handles the error event, fired when a request returns an error and bubbles up to the transaction object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IDBTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
The abort() method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
|
void |
addAbortListener(EventListener callback) |
void |
addAbortListener(EventListener callback,
AddEventListenerOptions options) |
void |
addAbortListener(EventListener callback,
boolean useCapture) |
void |
addCompleteListener(EventListener callback) |
void |
addCompleteListener(EventListener callback,
AddEventListenerOptions options) |
void |
addCompleteListener(EventListener callback,
boolean useCapture) |
void |
addErrorListener(EventListener callback) |
void |
addErrorListener(EventListener callback,
AddEventListenerOptions options) |
void |
addErrorListener(EventListener callback,
boolean useCapture) |
void |
commit()
The commit() method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
|
IDBDatabase |
db()
An IDBDatabase object.
|
java.lang.String |
durability() |
DOMException |
error()
A DOMError containing the relevant error.
|
java.lang.String |
mode()
An IDBTransactionMode object defining the mode for isolating access to data in the current object stores:
|
IDBObjectStore |
objectStore(java.lang.String name)
The objectStore() method of the IDBTransaction interface returns an object store that has already been added to the scope of this transaction.
|
DOMStringList |
objectStoreNames()
The objectStoreNames read-only property of the IDBTransaction interface returns a DOMStringList of names of IDBObjectStore objects.
|
void |
removeAbortListener(EventListener callback) |
void |
removeAbortListener(EventListener callback,
boolean useCapture) |
void |
removeAbortListener(EventListener callback,
EventListenerOptions options) |
void |
removeCompleteListener(EventListener callback) |
void |
removeCompleteListener(EventListener callback,
boolean useCapture) |
void |
removeCompleteListener(EventListener callback,
EventListenerOptions options) |
void |
removeErrorListener(EventListener callback) |
void |
removeErrorListener(EventListener callback,
boolean useCapture) |
void |
removeErrorListener(EventListener callback,
EventListenerOptions options) |
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, 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_, values@Nullable public EventHandler onabort
@Nullable public EventHandler oncomplete
@Nullable public EventHandler onerror
@JsProperty(name="db") @Nonnull public IDBDatabase db()
@JsProperty(name="durability") @Nonnull @IDBTransactionDurability public java.lang.String durability()
@JsProperty(name="error") @Nullable public DOMException error()
@JsProperty(name="mode") @Nonnull @IDBTransactionMode public java.lang.String mode()
@JsProperty(name="objectStoreNames") @Nonnull public DOMStringList objectStoreNames()
public void abort()
public void commit()
@Nonnull public IDBObjectStore objectStore(@Nonnull java.lang.String name)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addCompleteListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addCompleteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addCompleteListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeCompleteListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeCompleteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeCompleteListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback)