Package org.hibernate.dialect
Enum Class TimeZoneSupport
- All Implemented Interfaces:
Serializable
,Comparable<TimeZoneSupport>
,java.lang.constant.Constable
Describes the extent to which a given database supports the SQL
with time zone
types.
Really we only care about timestamp with time zone
here,
since the type time with time zone
is deeply conceptually
questionable, and so Hibernate eschews its use.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZoneSupport
Returns the enum constant of this class with the specified name.static TimeZoneSupport[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NATIVE
Thewith time zone
types retain the time zone information. That is, a round trip writing and reading a zoned datetime results in the exact same zoned datetime with the same timezone. -
NORMALIZE
Thewith time zone
types normalize to UTC. That is, a round trip writing and reading a zoned datetime results in a datetime representing the same instant, but in the timezone UTC. -
NONE
No support forwith time zone
types.
-
-
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
-