Class MicroTxTransactionStatus
java.lang.Object
com.oracle.microtx.springboot.transactional.MicroTxTransactionStatus
- All Implemented Interfaces:
Flushable
,org.springframework.transaction.SavepointManager
,org.springframework.transaction.TransactionExecution
,org.springframework.transaction.TransactionStatus
@Service
@RequestScope
public class MicroTxTransactionStatus
extends Object
implements org.springframework.transaction.TransactionStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
boolean
boolean
boolean
boolean
void
releaseSavepoint
(Object savepoint) void
rollbackToSavepoint
(Object savepoint) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.transaction.TransactionExecution
getTransactionName, hasTransaction, isNested, isReadOnly
-
Constructor Details
-
MicroTxTransactionStatus
public MicroTxTransactionStatus()
-
-
Method Details
-
hasSavepoint
public boolean hasSavepoint()- Specified by:
hasSavepoint
in interfaceorg.springframework.transaction.TransactionStatus
-
flush
public void flush() -
createSavepoint
- Specified by:
createSavepoint
in interfaceorg.springframework.transaction.SavepointManager
- Throws:
org.springframework.transaction.TransactionException
-
rollbackToSavepoint
public void rollbackToSavepoint(Object savepoint) throws org.springframework.transaction.TransactionException - Specified by:
rollbackToSavepoint
in interfaceorg.springframework.transaction.SavepointManager
- Throws:
org.springframework.transaction.TransactionException
-
releaseSavepoint
public void releaseSavepoint(Object savepoint) throws org.springframework.transaction.TransactionException - Specified by:
releaseSavepoint
in interfaceorg.springframework.transaction.SavepointManager
- Throws:
org.springframework.transaction.TransactionException
-
isNewTransaction
public boolean isNewTransaction()- Specified by:
isNewTransaction
in interfaceorg.springframework.transaction.TransactionExecution
-
setRollbackOnly
public void setRollbackOnly()- Specified by:
setRollbackOnly
in interfaceorg.springframework.transaction.TransactionExecution
-
isRollbackOnly
public boolean isRollbackOnly()- Specified by:
isRollbackOnly
in interfaceorg.springframework.transaction.TransactionExecution
-
isCompleted
public boolean isCompleted()- Specified by:
isCompleted
in interfaceorg.springframework.transaction.TransactionExecution
-