public class ManagedUserTransaction
extends java.lang.Object
Constructor and Description |
---|
ManagedUserTransaction(UserTransaction userTransaction,
JtaEntityManagerRegistry jtaEntityManagerRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int i) |
public ManagedUserTransaction(UserTransaction userTransaction, JtaEntityManagerRegistry jtaEntityManagerRegistry)
public void begin() throws NotSupportedException, SystemException
NotSupportedException
SystemException
public void commit() throws HeuristicMixedException, HeuristicRollbackException, java.lang.IllegalStateException, RollbackException, java.lang.SecurityException, SystemException
HeuristicMixedException
HeuristicRollbackException
java.lang.IllegalStateException
RollbackException
java.lang.SecurityException
SystemException
public int getStatus() throws SystemException
SystemException
public void rollback() throws java.lang.IllegalStateException, java.lang.SecurityException, SystemException
java.lang.IllegalStateException
java.lang.SecurityException
SystemException
public void setRollbackOnly() throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateException
SystemException
public void setTransactionTimeout(int i) throws SystemException
SystemException