public enum NoTransactionManager extends Enum<NoTransactionManager> implements TransactionManager
| Enum Constant and Description |
|---|
INSTANCE
Singleton instance of the TransactionManager
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionManager |
instance()
Returns the singleton instance of this TransactionManager
|
Transaction |
startTransaction()
Starts a transaction.
|
static NoTransactionManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoTransactionManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfexecuteInTransaction, fetchInTransactionpublic static final NoTransactionManager INSTANCE
public static NoTransactionManager[] values()
for (NoTransactionManager c : NoTransactionManager.values()) System.out.println(c);
public static NoTransactionManager valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TransactionManager instance()
public Transaction startTransaction()
TransactionManagerstartTransaction in interface TransactionManagerCopyright © 2010–2023. All rights reserved.