Enum DdlInTransactionMode
- All Implemented Interfaces:
Serializable,Comparable<DdlInTransactionMode>
Enum used for setting the behavior of DDL in read/write transactions.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDDL statements in an empty transaction are allowed.DDL statements automatically cause the current transaction to be committed and the DDL statement is subsequently executed without a transaction.All DDL statements in a read/write transaction fail. -
Method Summary
Modifier and TypeMethodDescriptionstatic DdlInTransactionModeReturns the enum constant of this type with the specified name.static DdlInTransactionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FAIL
All DDL statements in a read/write transaction fail. -
ALLOW_IN_EMPTY_TRANSACTION
DDL statements in an empty transaction are allowed. That is; if the connection is in AutoCommit=false mode and no other statement has been executed, then executing a DDL statement or a DDL batch is allowed. -
AUTO_COMMIT_TRANSACTION
DDL statements automatically cause the current transaction to be committed and the DDL statement is subsequently executed without a transaction. This is equal to how MySQL and Oracle behave.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-