public class J2eeUserTransaction extends Object implements UserTransaction, Serializable, Referenceable
| Constructor and Description |
|---|
J2eeUserTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
Reference |
getReference() |
int |
getStatus() |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionUserTransactionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException,
IllegalStateException,
SecurityException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSystemExceptionIllegalStateExceptionSecurityExceptionUserTransactionpublic void rollback()
throws IllegalStateException,
SystemException,
SecurityException
rollback in interface UserTransactionIllegalStateExceptionSystemExceptionSecurityExceptionUserTransactionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionUserTransactionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionUserTransactionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionUserTransactionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionCopyright © 2023. All rights reserved.