Package io.micronaut.transaction.impl
Interface InternalTransaction<T>
- Type Parameters:
- T- The transaction type
- All Superinterfaces:
- TransactionExecution,- TransactionStatus<T>
- All Known Implementing Classes:
- AbstractInternalTransaction,- DefaultTransactionStatus
The internal transaction representation.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanTemplate method for determining the global rollback-only flag of the underlying transaction, if any.booleanDetermine the rollback-only flag via checking this TransactionStatus.booleanCheck if the current TX is nested.default voidresume()default voidsuspend()voidvoidvoidvoidMethods inherited from interface io.micronaut.transaction.TransactionExecutiongetTransactionDefinition, isCompleted, isNewTransaction, isRollbackOnly, setRollbackOnlyMethods inherited from interface io.micronaut.transaction.TransactionStatusgetConnection, getConnectionStatus, getTransaction, registerSynchronization
- 
Method Details- 
isNestedTransactionboolean isNestedTransaction()Check if the current TX is nested.- Returns:
- true if is nested transaction
- Since:
- 4.1.0
 
- 
isLocalRollbackOnlyboolean isLocalRollbackOnly()Determine the rollback-only flag via checking this TransactionStatus.Will only return "true" if the application called setRollbackOnlyon this TransactionStatus object.- Returns:
- Whether is local rollback
 
- 
isGlobalRollbackOnlyboolean isGlobalRollbackOnly()Template method for determining the global rollback-only flag of the underlying transaction, if any.This implementation always returns false.- Returns:
- Whether is global rollback
 
- 
suspenddefault void suspend()
- 
resumedefault void resume()
- 
triggerBeforeCommitvoid triggerBeforeCommit()
- 
triggerAfterCommitvoid triggerAfterCommit()
- 
triggerBeforeCompletionvoid triggerBeforeCompletion()
- 
triggerAfterCompletion
- 
cleanupAfterCompletionvoid cleanupAfterCompletion()
 
-