Enum SubqueryType
- java.lang.Object
-
- java.lang.Enum<SubqueryType>
-
- org.apache.shardingsphere.sql.parser.sql.common.enums.SubqueryType
-
- All Implemented Interfaces:
Serializable,Comparable<SubqueryType>
public enum SubqueryType extends Enum<SubqueryType>
Subquery type enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXISTS_SUBQUERYINSERT_SELECT_SUBQUERYPREDICATE_SUBQUERYPROJECTION_SUBQUERYTABLE_SUBQUERY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubqueryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SubqueryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECTION_SUBQUERY
public static final SubqueryType PROJECTION_SUBQUERY
-
TABLE_SUBQUERY
public static final SubqueryType TABLE_SUBQUERY
-
PREDICATE_SUBQUERY
public static final SubqueryType PREDICATE_SUBQUERY
-
INSERT_SELECT_SUBQUERY
public static final SubqueryType INSERT_SELECT_SUBQUERY
-
EXISTS_SUBQUERY
public static final SubqueryType EXISTS_SUBQUERY
-
-
Method Detail
-
values
public static SubqueryType[] 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 (SubqueryType c : SubqueryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubqueryType 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
-
-