public class DefaultTransaction extends Object implements BaseTransactionConfigurable
| Constructor and Description |
|---|
DefaultTransaction(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 DefaultTransaction(BaseTransactionConfig config)
public BaseTransactionConfig getConfiguration()
BaseTransactionConfigurablegetConfiguration in interface BaseTransactionConfigurablepublic 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 BaseTransactionBackendExceptionCopyright © 2012–2015. All rights reserved.