Module org.firebirdsql.jaybird
Package org.firebirdsql.gds.ng.tz
Interface TimeZoneDatatypeCoder.TimeZoneCodec
- Enclosing class:
- TimeZoneDatatypeCoder
public static interface TimeZoneDatatypeCoder.TimeZoneCodec
Simpler API for encoding or decoding
java.time
types.
The data encoded or decoded depends on the specific Firebird type used to obtain this codec.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeOffsetDateTime
(byte[] fieldData) Decodes an encoded value to an offset date time.decodeOffsetTime
(byte[] fieldData) Decodes an encoded value to an offset time.decodeZonedDateTime
(byte[] fieldData) Decodes an encoded value to a zoned date time.byte[]
encodeOffsetDateTime
(OffsetDateTime offsetDateTime) Encode an offset date time to an encoded value.byte[]
encodeOffsetTime
(OffsetTime offsetTime) Encode an offset time to an encoded value.byte[]
encodeZonedDateTime
(ZonedDateTime zonedDateTime) Encode a zoned date time to an encoded value.
-
Method Details
-
encodeOffsetDateTime
Encode an offset date time to an encoded value.- Parameters:
offsetDateTime
- offset date time instance- Returns:
- byte array with encoded value, or
null
ifoffsetDateTime
isnull
-
decodeOffsetDateTime
Decodes an encoded value to an offset date time.- Parameters:
fieldData
- byte array with encoded value- Returns:
- offset date time instance, or
null
iffieldDate
isnull
-
encodeOffsetTime
Encode an offset time to an encoded value.- Parameters:
offsetTime
- offset time instance- Returns:
- byte array with encoded value, or
null
ifoffsetTime
isnull
-
decodeOffsetTime
Decodes an encoded value to an offset time.- Parameters:
fieldData
- byte array with encoded value- Returns:
- offset time instance, or
null
iffieldDate
isnull
-
encodeZonedDateTime
Encode a zoned date time to an encoded value.- Parameters:
zonedDateTime
- zoned date time instance- Returns:
- byte array with encoded value, or
null
ifzonedDateTime
isnull
-
decodeZonedDateTime
Decodes an encoded value to a zoned date time.- Parameters:
fieldData
- byte array with encoded value- Returns:
- zoned date time value, or
null
iffieldDate
isnull
-