public class TransactionStatusAdapter
extends org.springframework.transaction.support.DefaultTransactionStatus
implements com.liferay.portal.kernel.transaction.TransactionStatus
Constructor and Description |
---|
TransactionStatusAdapter(org.springframework.transaction.TransactionStatus transactionStatus) |
Modifier and Type | Method and Description |
---|---|
Object |
createSavepoint() |
void |
flush() |
org.springframework.transaction.TransactionStatus |
getTransactionStatus() |
boolean |
hasSavepoint() |
boolean |
isCompleted() |
boolean |
isNewTransaction() |
boolean |
isRollbackOnly() |
void |
releaseSavepoint(Object savepoint) |
void |
rollbackToSavepoint(Object savepoint) |
void |
setRollbackOnly() |
void |
suppressLifecycleListenerThrowable(Throwable throwable) |
getSavepointManager, getSuspendedResources, getTransaction, hasTransaction, isDebug, isGlobalRollbackOnly, isNewSynchronization, isReadOnly, isTransactionSavepointManager
public TransactionStatusAdapter(org.springframework.transaction.TransactionStatus transactionStatus)
public Object createSavepoint() throws org.springframework.transaction.TransactionException
createSavepoint
in interface org.springframework.transaction.SavepointManager
createSavepoint
in class org.springframework.transaction.support.AbstractTransactionStatus
org.springframework.transaction.TransactionException
public void flush()
flush
in interface Flushable
flush
in interface org.springframework.transaction.TransactionStatus
flush
in class org.springframework.transaction.support.DefaultTransactionStatus
public org.springframework.transaction.TransactionStatus getTransactionStatus()
public boolean hasSavepoint()
hasSavepoint
in interface org.springframework.transaction.TransactionStatus
hasSavepoint
in class org.springframework.transaction.support.AbstractTransactionStatus
public boolean isCompleted()
isCompleted
in interface org.springframework.transaction.TransactionExecution
isCompleted
in class org.springframework.transaction.support.AbstractTransactionStatus
public boolean isNewTransaction()
isNewTransaction
in interface org.springframework.transaction.TransactionExecution
isNewTransaction
in class org.springframework.transaction.support.DefaultTransactionStatus
public boolean isRollbackOnly()
isRollbackOnly
in interface org.springframework.transaction.TransactionExecution
isRollbackOnly
in class org.springframework.transaction.support.AbstractTransactionStatus
public void releaseSavepoint(Object savepoint) throws org.springframework.transaction.TransactionException
releaseSavepoint
in interface org.springframework.transaction.SavepointManager
releaseSavepoint
in class org.springframework.transaction.support.AbstractTransactionStatus
org.springframework.transaction.TransactionException
public void rollbackToSavepoint(Object savepoint) throws org.springframework.transaction.TransactionException
rollbackToSavepoint
in interface org.springframework.transaction.SavepointManager
rollbackToSavepoint
in class org.springframework.transaction.support.AbstractTransactionStatus
org.springframework.transaction.TransactionException
public void setRollbackOnly()
setRollbackOnly
in interface org.springframework.transaction.TransactionExecution
setRollbackOnly
in class org.springframework.transaction.support.AbstractTransactionStatus
public void suppressLifecycleListenerThrowable(Throwable throwable)