public abstract class Transaction extends DBObject
Database's getTransaction() method.| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.Mode
Transaction mode.
|
static class |
Transaction.TransactionCallback
A callback to monitor the current transaction state changes.
|
| Modifier and Type | Field and Description |
|---|---|
protected Transaction.TransactionCallback |
transactionCallback |
| Modifier | Constructor and Description |
|---|---|
protected |
Transaction(AbstractDatabase db,
String[] storeNames,
Transaction.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
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 <K,V> ObjectStore<K,V> |
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.
|
reportErrorprotected Transaction.TransactionCallback transactionCallback
protected Transaction(AbstractDatabase db, String[] storeNames, Transaction.Mode mode)
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 - Copyright © 2015. All rights reserved.