public class PseudoTransactionService extends Object implements TransactionService, TransactionManager, TransactionSynchronizationRegistry
| Modifier and Type | Class and Description |
|---|---|
class |
PseudoTransactionService.MyTransaction |
| Constructor and Description |
|---|
PseudoTransactionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
Object |
getResource(Object key) |
boolean |
getRollbackOnly() |
int |
getStatus() |
Transaction |
getTransaction() |
Object |
getTransactionKey() |
TransactionManager |
getTransactionManager() |
int |
getTransactionStatus() |
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry() |
void |
init(Properties props) |
void |
putResource(Object key,
Object value) |
void |
registerInterposedSynchronization(Synchronization synchronization) |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
public void init(Properties props)
public TransactionManager getTransactionManager()
getTransactionManager in interface TransactionServicepublic TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
public int getStatus()
getStatus in interface TransactionManagerpublic Transaction getTransaction()
getTransaction in interface TransactionManagerpublic boolean getRollbackOnly()
getRollbackOnly in interface TransactionSynchronizationRegistrypublic void setRollbackOnly()
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface TransactionSynchronizationRegistrypublic void begin()
throws NotSupportedException
begin in interface TransactionManagerNotSupportedExceptionpublic void commit()
throws RollbackException
commit in interface TransactionManagerRollbackExceptionpublic void rollback()
rollback in interface TransactionManagerpublic Transaction suspend()
suspend in interface TransactionManagerpublic void resume(Transaction tx) throws InvalidTransactionException
resume in interface TransactionManagerInvalidTransactionExceptionpublic Object getTransactionKey()
getTransactionKey in interface TransactionSynchronizationRegistrypublic int getTransactionStatus()
getTransactionStatus in interface TransactionSynchronizationRegistrypublic Object getResource(Object key)
getResource in interface TransactionSynchronizationRegistrypublic void putResource(Object key, Object value)
putResource in interface TransactionSynchronizationRegistrypublic void registerInterposedSynchronization(Synchronization synchronization)
registerInterposedSynchronization in interface TransactionSynchronizationRegistrypublic void setTransactionTimeout(int seconds)
setTransactionTimeout in interface TransactionManagerCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.