public class JsIDBTransaction extends JsElementalMixinBase implements IDBTransaction
READ_ONLY, READ_WRITE, VERSION_CHANGE
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsIDBTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Returns immediately, and undoes all the changes to objects in the database associated with this transaction.
|
JsIDBDatabase |
getDb()
The database connection that this transaction is associated with.
|
JsDOMError |
getError() |
String |
getMode()
The mode for isolating access to data in the object stores that are in the scope of the transaction.
|
EventListener |
getOnabort() |
EventListener |
getOncomplete() |
EventListener |
getOnerror() |
JsIDBObjectStore |
objectStore(String name)
Returns an object store that has already been added to the scope of this transaction.
|
void |
setOnabort(EventListener listener) |
void |
setOncomplete(EventListener listener) |
void |
setOnerror(EventListener listener) |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener
intAt, length
numberAt
public final JsIDBDatabase getDb()
IDBTransaction
getDb
in interface IDBTransaction
public final JsDOMError getError()
getError
in interface IDBTransaction
public final String getMode()
IDBTransaction
READ_ONLY
.getMode
in interface IDBTransaction
public final EventListener getOnabort()
getOnabort
in interface IDBTransaction
public final void setOnabort(EventListener listener)
setOnabort
in interface IDBTransaction
public final EventListener getOncomplete()
getOncomplete
in interface IDBTransaction
public final void setOncomplete(EventListener listener)
setOncomplete
in interface IDBTransaction
public final EventListener getOnerror()
getOnerror
in interface IDBTransaction
public final void setOnerror(EventListener listener)
setOnerror
in interface IDBTransaction
public final void abort()
IDBTransaction
Returns immediately, and undoes all the changes to objects in the database associated with this transaction. If this transaction has been aborted or completed, then this method throws an error event, with its code set to ABORT_ERR
and a suitable message.
All pending IDBRequest
objects created during this transaction have their errorCode
set to ABORT_ERR
.
This method can raise an IDBDatabaseException, with the following code:
NOT_ALLOWED_ERR
abort
in interface IDBTransaction
public final JsIDBObjectStore objectStore(String name)
IDBTransaction
Returns an object store that has already been added to the scope of this transaction. Every call to this method on the same transaction object, with the same name, returns the same IDBObjectStore instance. If this method is called on a different transaction object, a different IDBObjectStore instance is returned.
IDBObjectStore
The method can raise an IDBDatabaseException with the following code:
NOT_FOUND_ERR
NOT_ALLOWED_ERR
objectStore
in interface IDBTransaction
Copyright © 2016. All rights reserved.