Package org.apache.openjpa.kernel.exps
Enum DateTimeExtractField
- java.lang.Object
-
- java.lang.Enum<DateTimeExtractField>
-
- org.apache.openjpa.kernel.exps.DateTimeExtractField
-
- All Implemented Interfaces:
Serializable
,Comparable<DateTimeExtractField>
public enum DateTimeExtractField extends Enum<DateTimeExtractField>
Type identifiers used by EXTRACT function
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
Means the calendar day of the month, numbered from 1HOUR
Means the hour of the day in 24-hour time, numbered from 0 to 23MINUTE
Mans the minute of the hour, numbered from 0 to 59MONTH
Means the calendar month of the year, numbered from 1QUARTER
Means the calendar quarter, numbered from 1 to 4SECOND
Means the second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second.WEEK
Means the ISO-8601 week numberYEAR
Means the calendar year
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChronoField
getEquivalent()
static DateTimeExtractField
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateTimeExtractField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final DateTimeExtractField YEAR
Means the calendar year
-
QUARTER
public static final DateTimeExtractField QUARTER
Means the calendar quarter, numbered from 1 to 4
-
MONTH
public static final DateTimeExtractField MONTH
Means the calendar month of the year, numbered from 1
-
WEEK
public static final DateTimeExtractField WEEK
Means the ISO-8601 week number
-
DAY
public static final DateTimeExtractField DAY
Means the calendar day of the month, numbered from 1
-
HOUR
public static final DateTimeExtractField HOUR
Means the hour of the day in 24-hour time, numbered from 0 to 23
-
MINUTE
public static final DateTimeExtractField MINUTE
Mans the minute of the hour, numbered from 0 to 59
-
SECOND
public static final DateTimeExtractField SECOND
Means the second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second.
-
-
Method Detail
-
values
public static DateTimeExtractField[] 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 (DateTimeExtractField c : DateTimeExtractField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimeExtractField 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
-
getEquivalent
public ChronoField getEquivalent()
-
-