Enum MySqlXAStatement.XAType
- java.lang.Object
-
- java.lang.Enum<MySqlXAStatement.XAType>
-
- com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlXAStatement.XAType
-
- All Implemented Interfaces:
Serializable,Comparable<MySqlXAStatement.XAType>
- Enclosing class:
- MySqlXAStatement
public static enum MySqlXAStatement.XAType extends Enum<MySqlXAStatement.XAType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MySqlXAStatement.XATypeof(String typeStr)static MySqlXAStatement.XATypevalueOf(String name)Returns the enum constant of this type with the specified name.static MySqlXAStatement.XAType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START
public static final MySqlXAStatement.XAType START
-
BEGIN
public static final MySqlXAStatement.XAType BEGIN
-
END
public static final MySqlXAStatement.XAType END
-
PREPARE
public static final MySqlXAStatement.XAType PREPARE
-
COMMIT
public static final MySqlXAStatement.XAType COMMIT
-
ROLLBACK
public static final MySqlXAStatement.XAType ROLLBACK
-
RECOVER
public static final MySqlXAStatement.XAType RECOVER
-
-
Method Detail
-
values
public static MySqlXAStatement.XAType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MySqlXAStatement.XAType c : MySqlXAStatement.XAType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MySqlXAStatement.XAType valueOf(String name)
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
-
of
public static MySqlXAStatement.XAType of(String typeStr)
-
-