Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRender a zero offset using the numeric form+00:00.Render a zero offset using the UTC designatorZ. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZeroOffsetLiteralStyleReturns the enum constant of this class with the specified name.static ZeroOffsetLiteralStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UTC_DESIGNATOR
Render a zero offset using the UTC designatorZ. -
NUMERIC_OFFSET
Render a zero offset using the numeric form+00:00.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-