public class PseudoTransactionService extends java.lang.Object implements TransactionService
Modifier and Type | Class and Description |
---|---|
class |
PseudoTransactionService.MyTransaction |
Constructor and Description |
---|
PseudoTransactionService() |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
java.lang.Object |
getResource(java.lang.Object key) |
boolean |
getRollbackOnly() |
int |
getStatus() |
Transaction |
getTransaction() |
java.lang.Object |
getTransactionKey() |
TransactionManager |
getTransactionManager() |
int |
getTransactionStatus() |
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry() |
void |
init(java.util.Properties props) |
void |
putResource(java.lang.Object key,
java.lang.Object value) |
void |
registerInterposedSynchronization(Synchronization synchronization) |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
public TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionService
public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
public int getStatus()
public Transaction getTransaction()
public boolean getRollbackOnly()
public void setRollbackOnly()
public void begin() throws NotSupportedException
NotSupportedException
public void commit() throws RollbackException
RollbackException
public void rollback()
public Transaction suspend()
public void resume(Transaction tx) throws InvalidTransactionException
InvalidTransactionException
public java.lang.Object getTransactionKey()
public int getTransactionStatus()
public java.lang.Object getResource(java.lang.Object key)
public void putResource(java.lang.Object key, java.lang.Object value)
public void registerInterposedSynchronization(Synchronization synchronization)
public void setTransactionTimeout(int seconds)