org.cruxframework.crux.core.client.db
Class IDXTransaction

java.lang.Object
  extended by org.cruxframework.crux.core.client.db.DBObject
      extended by org.cruxframework.crux.core.client.db.Transaction
          extended by org.cruxframework.crux.core.client.db.IDXTransaction

public class IDXTransaction
extends Transaction

CRUX INTERNAL CLASS. DO NOT USE IT DIRECTLY. Indexed DB implementation for Transaction Interface. Use the interface Transaction instead.

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class org.cruxframework.crux.core.client.db.Transaction
Transaction.Mode, Transaction.TransactionCallback
 
Field Summary
protected  IDXAbstractDatabase db
           
 
Fields inherited from class org.cruxframework.crux.core.client.db.Transaction
transactionCallback
 
Fields inherited from class org.cruxframework.crux.core.client.db.DBObject
logger
 
Constructor Summary
protected IDXTransaction(IDXAbstractDatabase db, String[] storeNames, Transaction.Mode mode)
           
 
Method Summary
 void abort()
          Abort current transaction and rollback operations.
 FileStore getFileStore()
          Retrieve a specialized object store for files handling.
<K,V> ObjectStore<K,V>
getObjectStore(String storeName)
          Retrieve an ObjectStore manipulated by the current transaction.
 
Methods inherited from class org.cruxframework.crux.core.client.db.Transaction
containsObjectStore, getMode, getStoreNames, setTransactionCallback
 
Methods inherited from class org.cruxframework.crux.core.client.db.DBObject
reportError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

protected final IDXAbstractDatabase db
Constructor Detail

IDXTransaction

protected IDXTransaction(IDXAbstractDatabase db,
                         String[] storeNames,
                         Transaction.Mode mode)
Method Detail

getObjectStore

public <K,V> ObjectStore<K,V> getObjectStore(String storeName)
Retrieve an ObjectStore manipulated by the current transaction.

Specified by:
getObjectStore in class Transaction
Type Parameters:
K -
V -
Parameters:
storeName -
Returns:

abort

public void abort()
Abort current transaction and rollback operations.

Specified by:
abort in class Transaction

getFileStore

public FileStore getFileStore()
Retrieve a specialized object store for files handling.

Specified by:
getFileStore in class Transaction
Returns:


Copyright © 2014. All rights reserved.