public class UserTransactionManager extends Object implements TransactionManager, Serializable, Referenceable, UserTransaction, OrderedLifecycleComponent
| Constructor and Description |
|---|
UserTransactionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
close()
Closes the transaction service, but only if it was
implicitly started via this instance.
|
void |
commit() |
boolean |
getForceShutdown() |
Reference |
getReference() |
boolean |
getStartupTransactionService()
Returns true if the transaction service will
be started if not already running.
|
int |
getStatus() |
Transaction |
getTransaction() |
void |
init()
Performs initialization if necessary.
|
void |
resume(Transaction tx) |
void |
rollback() |
void |
setForceShutdown(boolean value)
Sets the force shutdown mode to use during close.
|
void |
setRollbackOnly() |
void |
setStartupTransactionService(boolean startup)
Sets whether the transaction service should be
started if not already running.
|
void |
setTransactionTimeout(int secs) |
Transaction |
suspend() |
public void setStartupTransactionService(boolean startup)
startup - public boolean getStartupTransactionService()
public void init()
throws SystemException
init in interface OrderedLifecycleComponentSystemExceptionpublic void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionNotSupportedExceptionSystemExceptionTransactionManager.begin()public boolean getForceShutdown()
public void setForceShutdown(boolean value)
value - 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 ReferenceableNamingExceptionReferenceable.getReference()public void close()
close in interface OrderedLifecycleComponentCopyright © 2022. All rights reserved.