public abstract class AbstractStoreTransaction extends Object implements StoreTransaction
StoreTransaction to be used as the basis for more specific implementations.| Constructor and Description |
|---|
AbstractStoreTransaction(BaseTransactionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the transaction and persists all modifications to the backend.
|
BaseTransactionConfig |
getConfiguration()
Get the configuration for this transaction
|
void |
rollback()
Aborts (or rolls back) the transaction.
|
public AbstractStoreTransaction(BaseTransactionConfig config)
public void commit()
throws BackendException
BaseTransactionBaseTransaction.rollback() at most once per instance.commit in interface BaseTransactionBackendExceptionpublic void rollback()
throws BackendException
BaseTransactionBaseTransaction.commit() at most once per instance.rollback in interface BaseTransactionBackendExceptionpublic BaseTransactionConfig getConfiguration()
BaseTransactionConfigurablegetConfiguration in interface BaseTransactionConfigurableCopyright © 2012–2015. All rights reserved.