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 StorageException
BaseTransactionBaseTransaction.rollback() at most once per instance.commit in interface BaseTransactionStorageExceptionpublic void rollback()
throws StorageException
BaseTransactionBaseTransaction.commit() at most once per instance.rollback in interface BaseTransactionStorageExceptionCopyright © 2012–2014. All rights reserved.