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.
|
SessionEnvironment.Monitor |
createMonitor()
Get a monitor that should be used to capture what has changed during this transaction.
|
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 SessionEnvironment.Monitor createMonitor()
Transactions.TransactioncreateMonitor in interface SessionEnvironment.MonitorFactorycreateMonitor in interface Transactions.Transactionpublic 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.