protected abstract class Transactions.BaseTransaction extends Object implements Transactions.Transaction
Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
txnMgr |
Modifier | Constructor and Description |
---|---|
protected |
Transactions.BaseTransaction(TransactionManager txnMgr) |
Modifier and Type | Method and Description |
---|---|
SessionEnvironment.Monitor |
createMonitor()
Get a monitor that should be used to capture what has changed during this transaction.
|
protected void |
executeFunctions() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit, rollback
protected final TransactionManager txnMgr
protected Transactions.BaseTransaction(TransactionManager txnMgr)
public SessionEnvironment.Monitor createMonitor()
Transactions.Transaction
createMonitor
in interface SessionEnvironment.MonitorFactory
createMonitor
in interface Transactions.Transaction
protected void executeFunctions()
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.