|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.db.DBObject
org.cruxframework.crux.core.client.db.Transaction
public abstract class Transaction
A transaction on Crux Database, To create transactions, use one of Database's getTransaction() method.
| Nested Class Summary | |
|---|---|
static class |
Transaction.Mode
Transaction mode. |
static class |
Transaction.TransactionCallback
A callback to monitor the current transaction state changes. |
| Field Summary | |
|---|---|
protected Transaction.TransactionCallback |
transactionCallback
|
| Fields inherited from class org.cruxframework.crux.core.client.db.DBObject |
|---|
db, logger |
| Constructor Summary | |
|---|---|
protected |
Transaction(AbstractDatabase db,
String[] storeNames,
Transaction.Mode mode)
|
| Method Summary | ||
|---|---|---|
abstract void |
abort()
Abort current transaction and rollback operations. |
|
protected boolean |
containsObjectStore(String storeName)
|
|
abstract FileStore |
getFileStore()
Retrieve a specialized object store for files handling. |
|
Transaction.Mode |
getMode()
Retrieve the trnasction mode |
|
abstract
|
getObjectStore(String storeName)
Retrieve an ObjectStore manipulated by the current transaction. |
|
String[] |
getStoreNames()
Retrieve the object store names associated with this transaction |
|
void |
setTransactionCallback(Transaction.TransactionCallback callback)
Inform a callback to monitor the current transaction state changes. |
|
| 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 |
|---|
protected Transaction.TransactionCallback transactionCallback
| Constructor Detail |
|---|
protected Transaction(AbstractDatabase db,
String[] storeNames,
Transaction.Mode mode)
| Method Detail |
|---|
public String[] getStoreNames()
public Transaction.Mode getMode()
public void setTransactionCallback(Transaction.TransactionCallback callback)
callback - public abstract <K,V> ObjectStore<K,V> getObjectStore(String storeName)
K - V - storeName -
public abstract void abort()
public abstract FileStore getFileStore()
protected boolean containsObjectStore(String storeName)
storeName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||