Enum Class ZeroOffsetLiteralStyle

java.lang.Object
java.lang.Enum<ZeroOffsetLiteralStyle>
org.hibernate.dialect.literal.spi.ZeroOffsetLiteralStyle
All Implemented Interfaces:
Serializable, Comparable<ZeroOffsetLiteralStyle>, Constable

@Incubating(since="8.0") @SPI(USE) public enum ZeroOffsetLiteralStyle extends Enum<ZeroOffsetLiteralStyle>

Selects how a zero UTC offset is rendered in a SQL datetime literal.

Choose the form accepted by the database when composing an offset-bearing literal with StandardDateTimeLiteralRendering. This choice does not affect nonzero offsets or literals rendered without an offset.

Since:
8.0
  • Enum Constant Details

    • UTC_DESIGNATOR

      public static final ZeroOffsetLiteralStyle UTC_DESIGNATOR
      Render a zero offset using the UTC designator Z.
    • NUMERIC_OFFSET

      public static final ZeroOffsetLiteralStyle NUMERIC_OFFSET
      Render a zero offset using the numeric form +00:00.
  • Method Details

    • values

      public static ZeroOffsetLiteralStyle[] 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 ZeroOffsetLiteralStyle 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