public class CompensableManagerImpl extends Object implements CompensableManager, CompensableBeanFactoryAware, CompensableEndpointAware
BEAN_FACTORY_FIELD_NAMEENDPOINT_FIELD_NAME| 构造器和说明 |
|---|
CompensableManagerImpl() |
public void associateThread(org.bytesoft.transaction.Transaction transaction)
public CompensableTransaction desociateThread()
public int getStatus()
throws SystemException
getStatus 在接口中 TransactionManagerSystemExceptionpublic org.bytesoft.transaction.Transaction getTransaction(Xid transactionXid)
public org.bytesoft.transaction.Transaction getTransaction(Thread thread)
public org.bytesoft.transaction.Transaction getTransactionQuietly()
public org.bytesoft.transaction.Transaction getTransaction()
throws SystemException
getTransaction 在接口中 TransactionManagerSystemExceptionpublic CompensableTransaction getCompensableTransactionQuietly()
public CompensableTransaction getCompensableTransaction(Thread thread)
getCompensableTransaction 在接口中 CompensableManagerpublic void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException
public org.bytesoft.transaction.Transaction suspend()
throws SystemException
suspend 在接口中 TransactionManagerSystemExceptionpublic void begin()
throws NotSupportedException,
SystemException
begin 在接口中 TransactionManagerNotSupportedExceptionSystemExceptionprotected void invokeBegin(TransactionContext transactionContext, boolean createFlag) throws NotSupportedException, SystemException
protected void invokeRollbackInBegin(TransactionContext transactionContext) throws NotSupportedException, SystemException
public void compensableBegin()
throws NotSupportedException,
SystemException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
protected void invokeTransactionCommit(CompensableTransaction compensable) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
protected void invokeTransactionCommitIfLocalTransaction(CompensableTransaction compensable) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
protected void invokeTransactionCommitIfNotLocalTransaction(CompensableTransaction compensable) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
public void fireCompensableCommit(CompensableTransaction transaction) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
protected void invokeTransactionRollback(CompensableTransaction compensable) throws IllegalStateException, SecurityException, SystemException
public void fireCompensableRollback(CompensableTransaction transaction) throws IllegalStateException, SecurityException, SystemException
public void compensableCommit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
protected void invokeCompensableCommit(CompensableTransaction compensable) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
protected void invokeCompensableCommitIfLocalTransaction(CompensableTransaction compensable) throws HeuristicRollbackException, SystemException
protected void invokeCompensableCommitIfNotLocalTransaction(CompensableTransaction compensable) throws HeuristicRollbackException, SystemException
public void compensableRollback()
throws IllegalStateException,
SecurityException,
SystemException
protected void invokeCompensableRollback(CompensableTransaction compensable) throws IllegalStateException, SecurityException, SystemException
public void setRollbackOnlyQuietly()
public void setRollbackOnly()
throws IllegalStateException,
SystemException
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout 在接口中 TransactionManagerSystemExceptionpublic int getTimeoutSeconds()
public void setTimeoutSeconds(int timeoutSeconds)
public boolean isStatefully()
public void setStatefully(boolean statefully)
public CompensableBeanFactory getBeanFactory()
getBeanFactory 在接口中 CompensableBeanFactoryAwarepublic void setBeanFactory(CompensableBeanFactory tbf)
setBeanFactory 在接口中 CompensableBeanFactoryAwarepublic String getEndpoint()
getEndpoint 在接口中 CompensableEndpointAwarepublic void setEndpoint(String identifier)
setEndpoint 在接口中 CompensableEndpointAwareCopyright © 2018. All rights reserved.