public class TransactionManagerImpl extends Object implements TransactionManager, TransactionSynchronizationRegistry
Dependencies: Sun Java System Application Server publishes TM at JNDI name:
public static TransactionManagerImpl getInstance()
public TransactionManager getTransactionManager()
public UserTransaction getUserTransaction()
public boolean isTransactionManagerAvailable()
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface TransactionSynchronizationRegistryIllegalStateExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic Object getTransactionKey()
getTransactionKey in interface TransactionSynchronizationRegistrypublic 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()
Copyright © 2005–2018 Oracle Corporation. All rights reserved.