public class J2eeTransactionManager extends Object implements TransactionManager, Serializable, Referenceable, UserTransaction
| Constructor and Description |
|---|
J2eeTransactionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
Reference |
getReference() |
int |
getStatus() |
Transaction |
getTransaction() |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int secs) |
Transaction |
suspend() |
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionNotSupportedExceptionSystemExceptionTransactionManager.begin()public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagercommit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionTransactionManager.commit()public int getStatus()
throws SystemException
getStatus in interface TransactionManagergetStatus in interface UserTransactionSystemExceptionTransactionManager.getStatus()public Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionTransactionManager.getTransaction()public void resume(Transaction tx) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionTransactionManager.resume(javax.transaction.Transaction)public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerrollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionTransactionManager.rollback()public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionTransactionManager.setRollbackOnly()public void setTransactionTimeout(int secs)
throws SystemException
setTransactionTimeout in interface TransactionManagersetTransactionTimeout in interface UserTransactionSystemExceptionTransactionManager.setTransactionTimeout(int)public Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionTransactionManager.suspend()public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionCopyright © 2023. All rights reserved.