public class TransactionManagerImpl extends Object implements org.bytesoft.transaction.TransactionManager, CompensableBeanFactoryAware
BEAN_FACTORY_FIELD_NAME| 构造器和说明 |
|---|
TransactionManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
associateThread(org.bytesoft.transaction.Transaction transaction) |
void |
begin() |
void |
commit() |
org.bytesoft.transaction.Transaction |
desociateThread() |
CompensableBeanFactory |
getBeanFactory() |
int |
getStatus() |
int |
getTimeoutSeconds() |
org.bytesoft.transaction.Transaction |
getTransaction() |
org.bytesoft.transaction.Transaction |
getTransaction(Thread thread) |
org.bytesoft.transaction.Transaction |
getTransactionQuietly() |
void |
resume(Transaction tobj) |
void |
rollback() |
void |
setBeanFactory(CompensableBeanFactory tbf) |
void |
setRollbackOnly() |
void |
setRollbackOnlyQuietly() |
void |
setTimeoutSeconds(int timeoutSeconds) |
void |
setTransactionTimeout(int seconds) |
org.bytesoft.transaction.Transaction |
suspend() |
public void begin()
throws NotSupportedException,
SystemException
begin 在接口中 TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
public org.bytesoft.transaction.Transaction suspend()
throws SystemException
suspend 在接口中 TransactionManagerSystemExceptionpublic void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException
public void setRollbackOnlyQuietly()
public void setRollbackOnly()
throws IllegalStateException,
SystemException
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout 在接口中 TransactionManagerSystemExceptionpublic org.bytesoft.transaction.Transaction getTransaction(Thread thread)
public org.bytesoft.transaction.Transaction getTransaction()
throws SystemException
getTransaction 在接口中 TransactionManagerSystemExceptionpublic org.bytesoft.transaction.Transaction getTransactionQuietly()
public int getStatus()
throws SystemException
getStatus 在接口中 TransactionManagerSystemExceptionpublic CompensableBeanFactory getBeanFactory()
getBeanFactory 在接口中 CompensableBeanFactoryAwarepublic void setBeanFactory(CompensableBeanFactory tbf)
setBeanFactory 在接口中 CompensableBeanFactoryAwarepublic void associateThread(org.bytesoft.transaction.Transaction transaction)
public org.bytesoft.transaction.Transaction desociateThread()
public int getTimeoutSeconds()
public void setTimeoutSeconds(int timeoutSeconds)
Copyright © 2018. All rights reserved.