public static enum SqlConfig.TransactionMode extends Enum<SqlConfig.TransactionMode>
| Enum Constant and Description | 
|---|
DEFAULT
Indicates that the default transaction mode should be used. 
 | 
INFERRED
Indicates that the transaction mode to use when executing SQL
 scripts should be inferred using the rules listed below. 
 | 
ISOLATED
Indicates that SQL scripts should always be executed in a new,
 isolated transaction that will be immediately committed. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static SqlConfig.TransactionMode | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static SqlConfig.TransactionMode[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final SqlConfig.TransactionMode DEFAULT
The meaning of default depends on the context in which
 @SqlConfig is declared:
 
@SqlConfig is declared only locally,
 the default transaction mode is INFERRED.@SqlConfig is declared globally, the default transaction
 mode is INFERRED.@SqlConfig is declared globally and
 locally, the default transaction mode for the local declaration is
 inherited from the global declaration.public static final SqlConfig.TransactionMode INFERRED
@SqlConfig or discoverable via conventions. See
 TestContextTransactionUtils
 for details on the conventions used to discover such beans in
 the ApplicationContext.
 getDataSource() on the
 transaction manager. If the attempt fails, an exception will be
 thrown.
 TransactionalTestExecutionListener.
 public static final SqlConfig.TransactionMode ISOLATED
In contrast to INFERRED, this mode requires the
 presence of a transaction manager and a data
 source.
public static SqlConfig.TransactionMode[] values()
for (SqlConfig.TransactionMode c : SqlConfig.TransactionMode.values()) System.out.println(c);
public static SqlConfig.TransactionMode 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 null