Package com.exasol.adapter.sql
Enum SqlFunctionScalarExtract.ExtractParameter
- java.lang.Object
-
- java.lang.Enum<SqlFunctionScalarExtract.ExtractParameter>
-
- com.exasol.adapter.sql.SqlFunctionScalarExtract.ExtractParameter
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlFunctionScalarExtract.ExtractParameter>
- Enclosing class:
- SqlFunctionScalarExtract
public static enum SqlFunctionScalarExtract.ExtractParameter extends Enum<SqlFunctionScalarExtract.ExtractParameter>
List of available parameters for the EXTRACT function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlFunctionScalarExtract.ExtractParameter
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlFunctionScalarExtract.ExtractParameter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final SqlFunctionScalarExtract.ExtractParameter YEAR
Year extract parameter.
-
MONTH
public static final SqlFunctionScalarExtract.ExtractParameter MONTH
Month extract parameter.
-
DAY
public static final SqlFunctionScalarExtract.ExtractParameter DAY
Day extract parameter.
-
HOUR
public static final SqlFunctionScalarExtract.ExtractParameter HOUR
Hour extract parameter.
-
MINUTE
public static final SqlFunctionScalarExtract.ExtractParameter MINUTE
Minute extract parameter.
-
SECOND
public static final SqlFunctionScalarExtract.ExtractParameter SECOND
Second extract parameter.
-
-
Method Detail
-
values
public static SqlFunctionScalarExtract.ExtractParameter[] 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 (SqlFunctionScalarExtract.ExtractParameter c : SqlFunctionScalarExtract.ExtractParameter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlFunctionScalarExtract.ExtractParameter 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
-
-