Enum Class NoTransactionManager
- All Implemented Interfaces:
Serializable,Comparable<NoTransactionManager>,Constable,TransactionManager
TransactionManager implementation that does nothing. It's a placeholder implementation for the cases where no
special transaction management is required.
- Since:
- 2.0
- Author:
- Allard Buijze
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionManagerinstance()Returns the singleton instance of this TransactionManagerStarts a transaction.static NoTransactionManagerReturns the enum constant of this class with the specified name.static NoTransactionManager[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.axonframework.common.transaction.TransactionManager
executeInTransaction, fetchInTransaction
-
Enum Constant Details
-
INSTANCE
Singleton instance of the TransactionManager
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
instance
Returns the singleton instance of this TransactionManager- Returns:
- the singleton instance of this TransactionManager
-
startTransaction
Description copied from interface:TransactionManagerStarts a transaction. The return value is the started transaction that can be committed or rolled back.- Specified by:
startTransactionin interfaceTransactionManager- Returns:
- The object representing the transaction
-