Package org.hibernate
Enum TimeZoneStorageStrategy
- java.lang.Object
-
- java.lang.Enum<TimeZoneStorageStrategy>
-
- org.hibernate.TimeZoneStorageStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeZoneStorageStrategy>
public enum TimeZoneStorageStrategy extends Enum<TimeZoneStorageStrategy>
Enumerates the possible storage strategies for offset or zoned datetimes.- See Also:
TimeZoneStorageType
,TimeZoneSupport
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN
Stores the time zone in a separate column.NATIVE
Stores the time zone via thewith time zone
SQL types which retain the information.NORMALIZE
Doesn't store the time zone, but instead normalizes to the JDBC timezone.NORMALIZE_UTC
Doesn't store the time zone, but instead normalizes to UTC.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZoneStorageStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeZoneStorageStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NATIVE
public static final TimeZoneStorageStrategy NATIVE
Stores the time zone via thewith time zone
SQL types which retain the information.
-
COLUMN
public static final TimeZoneStorageStrategy COLUMN
Stores the time zone in a separate column.
-
NORMALIZE
public static final TimeZoneStorageStrategy NORMALIZE
Doesn't store the time zone, but instead normalizes to the JDBC timezone.
-
NORMALIZE_UTC
public static final TimeZoneStorageStrategy NORMALIZE_UTC
Doesn't store the time zone, but instead normalizes to UTC.
-
-
Method Detail
-
values
public static TimeZoneStorageStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeZoneStorageStrategy c : TimeZoneStorageStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeZoneStorageStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-