@Service
@ContractsProvided(value={UserTransactionImpl.class,javax.transaction.UserTransaction.class})
@PerLookup
public class UserTransactionImpl
extends Object
implements UserTransaction, Serializable
| Constructor and Description |
|---|
UserTransactionImpl()
Default constructor.
|
UserTransactionImpl(boolean doEjbAccessChecks)
Alternate version of constructor that allows control over whether
ejb access checks are performed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
void |
rollback() |
void |
setForTesting(JavaEETransactionManager tm,
InvocationManager im) |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
public UserTransactionImpl()
public UserTransactionImpl(boolean doEjbAccessChecks)
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionpublic void setForTesting(JavaEETransactionManager tm, InvocationManager im)
Copyright © 2019. All rights reserved.