public class TransactionStatusAdapter
extends org.springframework.transaction.support.DefaultTransactionStatus
implements com.liferay.portal.kernel.transaction.TransactionStatus
Constructor and Description |
---|
TransactionStatusAdapter(org.springframework.transaction.PlatformTransactionManager platformTransactionManager,
org.springframework.transaction.TransactionStatus transactionStatus) |
TransactionStatusAdapter(org.springframework.transaction.TransactionStatus transactionStatus)
Deprecated.
As of Judson (7.1.x), replaced by
TransactionStatusAdapter(PlatformTransactionManager,
TransactionStatus) |
Modifier and Type | Method and Description |
---|---|
Object |
createSavepoint() |
void |
flush() |
org.springframework.transaction.PlatformTransactionManager |
getPlatformTransactionManager() |
org.springframework.transaction.TransactionStatus |
getTransactionStatus() |
boolean |
hasSavepoint() |
boolean |
isCompleted() |
boolean |
isNewTransaction() |
boolean |
isRollbackOnly() |
void |
releaseSavepoint(Object savepoint) |
void |
rollbackToSavepoint(Object savepoint) |
void |
setRollbackOnly() |
getSavepointManager, getSuspendedResources, getTransaction, hasTransaction, isDebug, isGlobalRollbackOnly, isNewSynchronization, isReadOnly, isTransactionSavepointManager
public TransactionStatusAdapter(org.springframework.transaction.PlatformTransactionManager platformTransactionManager, org.springframework.transaction.TransactionStatus transactionStatus)
@Deprecated public TransactionStatusAdapter(org.springframework.transaction.TransactionStatus transactionStatus)
TransactionStatusAdapter(PlatformTransactionManager,
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.PlatformTransactionManager getPlatformTransactionManager()
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.TransactionStatus
isCompleted
in class org.springframework.transaction.support.AbstractTransactionStatus
public boolean isNewTransaction()
isNewTransaction
in interface org.springframework.transaction.TransactionStatus
isNewTransaction
in class org.springframework.transaction.support.DefaultTransactionStatus
public boolean isRollbackOnly()
isRollbackOnly
in interface org.springframework.transaction.TransactionStatus
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.TransactionStatus
setRollbackOnly
in class org.springframework.transaction.support.AbstractTransactionStatus