public class JtaTransactionContext extends Object implements TransactionContext
Modifier and Type | Class and Description |
---|---|
static class |
JtaTransactionContext.TransactionStateSynchronization |
Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
transactionManager |
Constructor and Description |
---|
JtaTransactionContext(TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
addTransactionListener(TransactionState transactionState,
TransactionListener transactionListener) |
void |
commit() |
protected Transaction |
getTransaction() |
void |
rollback() |
protected final TransactionManager transactionManager
public JtaTransactionContext(TransactionManager transactionManager)
public void commit()
commit
in interface TransactionContext
public void rollback()
rollback
in interface TransactionContext
protected Transaction getTransaction()
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
addTransactionListener
in interface TransactionContext
Copyright © 2015. All rights reserved.