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.Transaction
createMonitor
in interface SessionEnvironment.MonitorFactory
createMonitor
in interface Transactions.Transaction
public void commit()
Transactions.Transaction
commit
in interface Transactions.Transaction
public void rollback()
Transactions.Transaction
rollback
in interface Transactions.Transaction
public void uponCompletion(Transactions.TransactionFunction function)
Transactions.Transaction
uponCompletion
in interface Transactions.Transaction
function
- the completion functionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.