public enum TransactionOperationType extends Enum<TransactionOperationType>
| Enum Constant and Description |
|---|
BEGIN |
COMMIT |
IGNORE |
ROLLBACK |
SET_TRANSACTION |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<TransactionOperationType> |
getOperationType(String sql)
Get operation type.
|
static TransactionOperationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionOperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionOperationType BEGIN
public static final TransactionOperationType COMMIT
public static final TransactionOperationType ROLLBACK
public static final TransactionOperationType SET_TRANSACTION
public static final TransactionOperationType IGNORE
public static TransactionOperationType[] values()
for (TransactionOperationType c : TransactionOperationType.values()) System.out.println(c);
public static TransactionOperationType 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 com.google.common.base.Optional<TransactionOperationType> getOperationType(String sql)
sql - SQLCopyright © 2019 The Apache Software Foundation. All rights reserved.