@JsType(name="IDBTransaction", isNative=true, namespace="<global>") public class Transaction extends EventTarget
EventTarget.Options
ACTIVE_BUBBLE, ACTIVE_CAPTURE, PASSIVE_BUBBLE, PASSIVE_CAPTURE, PASSIVE_SUPPORTED
Constructor and Description |
---|
Transaction() |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
IDBDatabase |
getBb() |
DOMError |
getError() |
IDBTransactionMode |
getMode() |
String[] |
getObjectStoreNames() |
ObjectStore |
objectStore(String name) |
void |
setMode(IDBTransactionMode mode) |
void |
setOnAbort(Function fn) |
void |
setOnComplete(EventListener<NativeEvent<?>> fn) |
void |
setOnError(Function fn) |
addEventListener, addEventListener, addEventListener, dispatchEvent, dispatchEvent, getEventListeners, removeEventListener, removeEventListener, removeEventListener, removeNativeEventListener, removeNativeEventListener, removeNativeEventListener, setEventListeners
cast, getOwnPropertyNames, hasOwnProperty, observe
@JsProperty public IDBDatabase getBb()
@JsProperty public DOMError getError()
@JsProperty public IDBTransactionMode getMode()
@JsProperty public void setMode(IDBTransactionMode mode)
@JsProperty(name="onabort") public void setOnAbort(Function fn)
@JsProperty(name="oncomplete") public void setOnComplete(EventListener<NativeEvent<?>> fn)
@JsProperty public String[] getObjectStoreNames()
@JsProperty(name="onerror") public void setOnError(Function fn)
public void abort()
public ObjectStore objectStore(String name)
Copyright © 2018 Xalys. All rights reserved.