public class TimeZoneDatatypeCoder
extends java.lang.Object
TIME WITH TIME ZONE
and TIMESTAMP WITH TIME ZONE
.
As this uses Java 8 and higher types, this is not part of datatype coder itself.
Modifier and Type | Class and Description |
---|---|
static interface |
TimeZoneDatatypeCoder.TimeZoneCodec
Simpler API for encoding or decoding
java.time types. |
Constructor and Description |
---|
TimeZoneDatatypeCoder(DatatypeCoder datatypeCoder)
Initializes a time zone datatype coder.
|
Modifier and Type | Method and Description |
---|---|
static TimeZoneDatatypeCoder |
getInstanceFor(DatatypeCoder datatypeCoder)
Gets or creates an instance of time zone datatype coder for a datatype coder.
|
TimeZoneDatatypeCoder.TimeZoneCodec |
getTimeZoneCodecFor(FieldDescriptor fieldDescriptor)
Obtains the
TimeZoneDatatypeCoder.TimeZoneCodec implementation for the field described by fieldDescriptor . |
TimeZoneDatatypeCoder.TimeZoneCodec |
getTimeZoneCodecFor(int fieldType)
Obtains the
TimeZoneDatatypeCoder.TimeZoneCodec implementation for the field with the specified Firebird type. |
public TimeZoneDatatypeCoder(DatatypeCoder datatypeCoder)
datatypeCoder
- datatype coderpublic TimeZoneDatatypeCoder.TimeZoneCodec getTimeZoneCodecFor(FieldDescriptor fieldDescriptor) throws java.sql.SQLException
TimeZoneDatatypeCoder.TimeZoneCodec
implementation for the field described by fieldDescriptor
.fieldDescriptor
- Field descriptorTimeZoneCodec
java.sql.SQLException
- When fieldDescriptor
is not a TIME/TIMESTAMP WITH TIME ZONE type fieldgetTimeZoneCodecFor(int)
public TimeZoneDatatypeCoder.TimeZoneCodec getTimeZoneCodecFor(int fieldType) throws java.sql.SQLException
TimeZoneDatatypeCoder.TimeZoneCodec
implementation for the field with the specified Firebird type.fieldType
- Firebird type of the fieldTimeZoneCodec
java.sql.SQLException
- When fieldType
is not a TIME/TIMESTAMP WITH TIME ZONE typepublic static TimeZoneDatatypeCoder getInstanceFor(DatatypeCoder datatypeCoder)
datatypeCoder
- Datatype coder instanceTimeZoneDatatypeCoder
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.