@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="IDBRequest")
public class IDBRequest
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onerror
The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store.
|
EventHandler |
onsuccess
The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IDBRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorListener(EventListener callback) |
void |
addErrorListener(EventListener callback,
AddEventListenerOptions options) |
void |
addErrorListener(EventListener callback,
boolean useCapture) |
void |
addSuccessListener(EventListener callback) |
void |
addSuccessListener(EventListener callback,
AddEventListenerOptions options) |
void |
addSuccessListener(EventListener callback,
boolean useCapture) |
DOMException |
error()
A DOMError containing the relevant error.
|
java.lang.String |
readyState()
The IDBRequestReadyState of the request, which takes one of the following two values:
|
void |
removeErrorListener(EventListener callback) |
void |
removeErrorListener(EventListener callback,
boolean useCapture) |
void |
removeErrorListener(EventListener callback,
EventListenerOptions options) |
void |
removeSuccessListener(EventListener callback) |
void |
removeSuccessListener(EventListener callback,
boolean useCapture) |
void |
removeSuccessListener(EventListener callback,
EventListenerOptions options) |
jsinterop.base.Any |
result()
any
|
IDBObjectStoreOrIDBIndexOrIDBCursorUnion |
source()
An object representing the source of the request, such as an IDBIndex, IDBObjectStore or IDBCursor.
|
IDBTransaction |
transaction()
An IDBTransaction.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener@Nullable public EventHandler onerror
@Nullable public EventHandler onsuccess
@JsProperty(name="error") @Nullable public DOMException error()
@JsProperty(name="readyState") @Nonnull @IDBRequestReadyState public java.lang.String readyState()
@JsProperty(name="result") @Nullable public jsinterop.base.Any result()
@JsProperty(name="source") @Nullable public IDBObjectStoreOrIDBIndexOrIDBCursorUnion source()
@JsProperty(name="transaction") @Nullable public IDBTransaction transaction()
@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)
@JsOverlay
public final void addSuccessListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSuccessListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSuccessListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSuccessListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSuccessListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSuccessListener(@Nonnull
EventListener callback)