|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.tx.at.common.TransactionManagerImpl
public class TransactionManagerImpl
Access hosting JTA 1.1 TransactionManager and TransactionSynchronizationRegistry.
Dependencies: Sun Java System Application Server publishes TM at JNDI name:
| Method Summary | |
|---|---|
void |
begin()
|
void |
commit()
|
static TransactionManagerImpl |
getInstance()
|
int |
getRemainingTimeout()
Returns in seconds duration till current transaction times out. |
Object |
getResource(Object object)
|
boolean |
getRollbackOnly()
|
int |
getStatus()
|
Transaction |
getTransaction()
|
Object |
getTransactionKey()
|
TransactionManager |
getTransactionManager()
|
int |
getTransactionStatus()
|
UserTransaction |
getUserTransaction()
|
boolean |
isTransactionManagerAvailable()
|
void |
putResource(Object object,
Object object0)
|
void |
registerInterposedSynchronization(Synchronization synchronization)
|
void |
registerSynchronization(Synchronization sync)
|
void |
resume(Transaction transaction)
|
void |
rollback()
|
void |
servletPostInvokeTx(Boolean suspend)
PostInvoke Transaction configuration for Servlet Container. |
void |
servletPreInvokeTx()
PreInvoke Transaction configuration for Servlet Container. |
void |
setRollbackOnly()
|
void |
setTransactionTimeout(int seconds)
|
Transaction |
suspend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TransactionManagerImpl getInstance()
public TransactionManager getTransactionManager()
public UserTransaction getUserTransaction()
public boolean isTransactionManagerAvailable()
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedException
SystemException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemException
public Transaction getTransaction()
throws SystemException
getTransaction in interface TransactionManagerSystemException
public void resume(Transaction transaction)
throws InvalidTransactionException,
IllegalStateException,
SystemException
resume in interface TransactionManagerInvalidTransactionException
IllegalStateException
SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateException
SecurityException
SystemException
public void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface TransactionSynchronizationRegistryIllegalStateException
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemException
public Transaction suspend()
throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic Object getTransactionKey()
getTransactionKey in interface TransactionSynchronizationRegistry
public void putResource(Object object,
Object object0)
putResource in interface TransactionSynchronizationRegistrypublic Object getResource(Object object)
getResource in interface TransactionSynchronizationRegistrypublic void registerInterposedSynchronization(Synchronization synchronization)
registerInterposedSynchronization in interface TransactionSynchronizationRegistrypublic void registerSynchronization(Synchronization sync)
public int getTransactionStatus()
getTransactionStatus in interface TransactionSynchronizationRegistrypublic boolean getRollbackOnly()
getRollbackOnly in interface TransactionSynchronizationRegistrypublic void servletPreInvokeTx()
public void servletPostInvokeTx(Boolean suspend)
suspend - indicate whether the delisting is due to suspension or transaction completion(commmit/rollback)public int getRemainingTimeout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||