Enum Class AmbiguousTimestampBindingStrategy
- All Implemented Interfaces:
Serializable, Comparable<AmbiguousTimestampBindingStrategy>, Constable
Controls how
Instant and OffsetDateTime parameters are bound when JDBC
ParameterMetaData cannot identify whether the target column is TIMESTAMP or
TIMESTAMP WITH TIME ZONE.- Since:
- 4.2.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AmbiguousTimestampBindingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TIMESTAMP_WITH_TIME_ZONE
Bind ambiguousInstantandOffsetDateTimeparameters asTIMESTAMP WITH TIME ZONE.This is Pyranid's default strategy and is appropriate when ambiguous parameters target timestamp-with-time-zone columns.
-
TIMESTAMP_WITHOUT_TIME_ZONE
Bind ambiguousInstantandOffsetDateTimeparameters asTIMESTAMPwithout time zone.Pyranid converts
InstantandOffsetDateTimeparameters to theDatabase.Builder.timeZone(java.time.ZoneId)zone and binds the resulting local timestamp withTypes.TIMESTAMP.
-
-
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
-