Top Description Fields Constructors Methods
org.hibernate.dialect

public final Enum TimeZoneSupport

extends Enum<TimeZoneSupport>
Class Inheritance
Annotations
@Incubating
Imports
org.hibernate.Incubating

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.

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
public static final TimeZoneSupport
NATIVE

The with time zone types retain the time zone information.

public static final TimeZoneSupport
NONE

No support for with time zone types.

public static final TimeZoneSupport
NORMALIZE

The with time zone types normalize to UTC.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TimeZoneSupport
public static TimeZoneSupport[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NATIVEback to summary
public static final TimeZoneSupport NATIVE

The with 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.

NONEback to summary
public static final TimeZoneSupport NONE

No support for with time zone types.

NORMALIZEback to summary
public static final TimeZoneSupport NORMALIZE

The with 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.

Constructor Detail

TimeZoneSupportback to summary
private TimeZoneSupport()

Method Detail

valueOfback to summary
public static TimeZoneSupport valueOf(String name)
valuesback to summary
public static TimeZoneSupport[] values()