protected class SynchronizedTransactions.RollbackOnlyTransaction extends Object implements Transactions.Transaction
| Constructor and Description |
|---|
SynchronizedTransactions.RollbackOnlyTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the transaction currently associated with the calling thread.
|
void |
rollback()
Rolls back the transaction currently associated with the calling thread.
|
void |
uponCompletion(Transactions.TransactionFunction function)
Register a function that will be called when the current transaction completes, or immediately if there is not
currently an active transaction.
|
public SynchronizedTransactions.RollbackOnlyTransaction()
public void commit()
Transactions.Transactioncommit in interface Transactions.Transactionpublic void rollback()
Transactions.Transactionrollback in interface Transactions.Transactionpublic void uponCompletion(Transactions.TransactionFunction function)
Transactions.TransactionuponCompletion in interface Transactions.Transactionfunction - the completion functionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.