Enum PGDateField
- java.lang.Object
-
- java.lang.Enum<PGDateField>
-
- com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGDateField
-
- All Implemented Interfaces:
Serializable,Comparable<PGDateField>
public enum PGDateField extends Enum<PGDateField>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTURYDAYDECADEDOWDOYEPOCHHOURISODOWISOYEARMICROSECONDSMILLENNIUMMILLISECONDSMINUTEMONTHQUARTERSECONDTIMEZONETIMEZONE_HOURTIMEZONE_MINUTEWEEKYEAR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PGDateFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static PGDateField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CENTURY
public static final PGDateField CENTURY
-
DAY
public static final PGDateField DAY
-
DECADE
public static final PGDateField DECADE
-
DOW
public static final PGDateField DOW
-
DOY
public static final PGDateField DOY
-
EPOCH
public static final PGDateField EPOCH
-
HOUR
public static final PGDateField HOUR
-
ISODOW
public static final PGDateField ISODOW
-
ISOYEAR
public static final PGDateField ISOYEAR
-
MICROSECONDS
public static final PGDateField MICROSECONDS
-
MILLENNIUM
public static final PGDateField MILLENNIUM
-
MILLISECONDS
public static final PGDateField MILLISECONDS
-
MINUTE
public static final PGDateField MINUTE
-
MONTH
public static final PGDateField MONTH
-
QUARTER
public static final PGDateField QUARTER
-
SECOND
public static final PGDateField SECOND
-
TIMEZONE
public static final PGDateField TIMEZONE
-
TIMEZONE_HOUR
public static final PGDateField TIMEZONE_HOUR
-
TIMEZONE_MINUTE
public static final PGDateField TIMEZONE_MINUTE
-
WEEK
public static final PGDateField WEEK
-
YEAR
public static final PGDateField YEAR
-
-
Method Detail
-
values
public static PGDateField[] 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 (PGDateField c : PGDateField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PGDateField 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
-
-