
public class JsIDBTransaction extends JsElementalMixinBase implements IDBTransaction
READ_ONLY, READ_WRITE, VERSION_CHANGESVG_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, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringaddEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListenerintAt, lengthnumberAtpublic final JsIDBDatabase getDb()
IDBTransactiongetDb in interface IDBTransactionpublic final JsDOMError getError()
getError in interface IDBTransactionpublic final String getMode()
IDBTransactionREAD_ONLY.getMode in interface IDBTransactionpublic final EventListener getOnabort()
getOnabort in interface IDBTransactionpublic final void setOnabort(EventListener listener)
setOnabort in interface IDBTransactionpublic final EventListener getOncomplete()
getOncomplete in interface IDBTransactionpublic final void setOncomplete(EventListener listener)
setOncomplete in interface IDBTransactionpublic final EventListener getOnerror()
getOnerror in interface IDBTransactionpublic final void setOnerror(EventListener listener)
setOnerror in interface IDBTransactionpublic final void abort()
IDBTransactionReturns 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_ERRabort in interface IDBTransactionpublic final JsIDBObjectStore objectStore(String name)
IDBTransactionReturns 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.
IDBObjectStoreThe method can raise an IDBDatabaseException with the following code:
NOT_FOUND_ERRNOT_ALLOWED_ERRobjectStore in interface IDBTransactionCopyright © 2016. All rights reserved.