protected final class Transactions.SynchronizedTransaction extends Transactions.BaseTransaction implements Synchronization
id, txnMgr
Modifier | Constructor and Description |
---|---|
protected |
SynchronizedTransaction(TransactionManager txnMgr,
Transaction transaction) |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
void |
commit()
Commit the transaction currently associated with the calling thread.
|
void |
rollback()
Rolls back the transaction currently associated with the calling thread.
|
executeFunctionsUponCommit, executeFunctionsUponCompletion, id, started, status, toString, uponCommit, uponCompletion
protected SynchronizedTransaction(TransactionManager txnMgr, Transaction transaction)
public void commit()
Transactions.Transaction
commit
in interface Transactions.Transaction
public void rollback()
Transactions.Transaction
rollback
in interface Transactions.Transaction
public void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
afterCompletion
in interface Synchronization
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.