Enum ShadowOperationType
- java.lang.Object
-
- java.lang.Enum<ShadowOperationType>
-
- org.apache.shardingsphere.shadow.api.shadow.ShadowOperationType
-
- All Implemented Interfaces:
Serializable,Comparable<ShadowOperationType>
public enum ShadowOperationType extends Enum<ShadowOperationType>
Operation types supported by shadow.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETEThe shadow operation is delete.HINT_MATCHThe shadow operation is SQL hint match.INSERTThe shadow operation is insert.SELECTThe shadow operation is select.UPDATEThe shadow operation is update.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<ShadowOperationType>contains(String operationType)Contains operation type.static ShadowOperationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ShadowOperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT
public static final ShadowOperationType INSERT
The shadow operation is insert.
-
DELETE
public static final ShadowOperationType DELETE
The shadow operation is delete.
-
UPDATE
public static final ShadowOperationType UPDATE
The shadow operation is update.
-
SELECT
public static final ShadowOperationType SELECT
The shadow operation is select.
-
HINT_MATCH
public static final ShadowOperationType HINT_MATCH
The shadow operation is SQL hint match.
-
-
Method Detail
-
values
public static ShadowOperationType[] 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 (ShadowOperationType c : ShadowOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShadowOperationType 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
-
contains
public static Optional<ShadowOperationType> contains(String operationType)
Contains operation type.- Parameters:
operationType- operation type- Returns:
- shadow operation type
-
-