|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.icatch.jta.UserTransactionManager
public class UserTransactionManager
A straightforward, zero-setup implementation of a transaction manager. Applications can use an instance of this class to get a handle to the transaction manager, and automatically startup or recover the transaction service on first use.
| Constructor Summary | |
|---|---|
UserTransactionManager()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTransactionManager()
| Method Detail |
|---|
public void setStartupTransactionService(boolean startup)
startup - public boolean getStartupTransactionService()
public void init()
throws SystemException
SystemException
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionNotSupportedException
SystemExceptionTransactionManager.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 UserTransactionRollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemExceptionTransactionManager.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 TransactionManagerInvalidTransactionException
IllegalStateException
SystemExceptionTransactionManager.resume(javax.transaction.Transaction)
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerrollback in interface UserTransactionIllegalStateException
SecurityException
SystemExceptionTransactionManager.rollback()
public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface UserTransactionIllegalStateException
SystemExceptionTransactionManager.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||