Enum Class DateTimeExtractField

java.lang.Object
java.lang.Enum<DateTimeExtractField>
org.apache.openjpa.kernel.exps.DateTimeExtractField
All Implemented Interfaces:
Serializable, Comparable<DateTimeExtractField>, Constable

public enum DateTimeExtractField extends Enum<DateTimeExtractField>
Type identifiers used by EXTRACT function
  • Enum Constant Details

    • 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 Details

    • values

      public static DateTimeExtractField[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DateTimeExtractField valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTemporalField

      public TemporalField getTemporalField()
      The field of a Temporal that holds the value of this field. For SECOND it holds the whole seconds only.
    • getEquivalent

      @Deprecated public ChronoField getEquivalent()
      Deprecated.
      The ChronoField that holds the value of this field, or null for QUARTER and WEEK, which have no ChronoField.