com.liferay.portal.spring.transaction
Class TransactionStatusAdapter
java.lang.Object
org.springframework.transaction.support.AbstractTransactionStatus
org.springframework.transaction.support.DefaultTransactionStatus
com.liferay.portal.spring.transaction.TransactionStatusAdapter
- All Implemented Interfaces:
- Flushable, org.springframework.transaction.SavepointManager, org.springframework.transaction.TransactionStatus
public class TransactionStatusAdapter
- extends org.springframework.transaction.support.DefaultTransactionStatus
- implements com.liferay.portal.kernel.transaction.TransactionStatus
| Methods inherited from class org.springframework.transaction.support.DefaultTransactionStatus |
getSavepointManager, getSuspendedResources, getTransaction, hasTransaction, isDebug, isGlobalRollbackOnly, isNewSynchronization, isReadOnly, isTransactionSavepointManager |
| Methods inherited from class org.springframework.transaction.support.AbstractTransactionStatus |
createAndHoldSavepoint, getSavepoint, isLocalRollbackOnly, releaseHeldSavepoint, rollbackToHeldSavepoint, setCompleted, setSavepoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionStatusAdapter
public TransactionStatusAdapter(org.springframework.transaction.TransactionStatus transactionStatus)
createSavepoint
public Object createSavepoint()
throws org.springframework.transaction.TransactionException
- Specified by:
createSavepoint in interface org.springframework.transaction.SavepointManager- Overrides:
createSavepoint in class org.springframework.transaction.support.AbstractTransactionStatus
- Throws:
org.springframework.transaction.TransactionException
flush
public void flush()
- Specified by:
flush in interface Flushable- Specified by:
flush in interface org.springframework.transaction.TransactionStatus- Overrides:
flush in class org.springframework.transaction.support.DefaultTransactionStatus
getTransactionStatus
public org.springframework.transaction.TransactionStatus getTransactionStatus()
hasSavepoint
public boolean hasSavepoint()
- Specified by:
hasSavepoint in interface org.springframework.transaction.TransactionStatus- Overrides:
hasSavepoint in class org.springframework.transaction.support.AbstractTransactionStatus
isCompleted
public boolean isCompleted()
- Specified by:
isCompleted in interface org.springframework.transaction.TransactionStatus- Overrides:
isCompleted in class org.springframework.transaction.support.AbstractTransactionStatus
isNewTransaction
public boolean isNewTransaction()
- Specified by:
isNewTransaction in interface org.springframework.transaction.TransactionStatus- Overrides:
isNewTransaction in class org.springframework.transaction.support.DefaultTransactionStatus
isRollbackOnly
public boolean isRollbackOnly()
- Specified by:
isRollbackOnly in interface org.springframework.transaction.TransactionStatus- Overrides:
isRollbackOnly in class org.springframework.transaction.support.AbstractTransactionStatus
releaseSavepoint
public void releaseSavepoint(Object savepoint)
throws org.springframework.transaction.TransactionException
- Specified by:
releaseSavepoint in interface org.springframework.transaction.SavepointManager- Overrides:
releaseSavepoint in class org.springframework.transaction.support.AbstractTransactionStatus
- Throws:
org.springframework.transaction.TransactionException
rollbackToSavepoint
public void rollbackToSavepoint(Object savepoint)
throws org.springframework.transaction.TransactionException
- Specified by:
rollbackToSavepoint in interface org.springframework.transaction.SavepointManager- Overrides:
rollbackToSavepoint in class org.springframework.transaction.support.AbstractTransactionStatus
- Throws:
org.springframework.transaction.TransactionException
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnly in interface org.springframework.transaction.TransactionStatus- Overrides:
setRollbackOnly in class org.springframework.transaction.support.AbstractTransactionStatus