Package org.firebirdsql.gds.ng.tz
Class TimeZoneDatatypeCoder
- java.lang.Object
- 
- org.firebirdsql.gds.ng.tz.TimeZoneDatatypeCoder
 
- 
 public class TimeZoneDatatypeCoder extends java.lang.ObjectDatatype coder forTIME WITH TIME ZONEandTIMESTAMP WITH TIME ZONE.As this uses Java 8 and higher types, this is not part of datatype coder itself. - Since:
- 4.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceTimeZoneDatatypeCoder.TimeZoneCodecSimpler API for encoding or decodingjava.timetypes.
 - 
Constructor SummaryConstructors Constructor Description TimeZoneDatatypeCoder(DatatypeCoder datatypeCoder)Initializes a time zone datatype coder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeZoneDatatypeCodergetInstanceFor(DatatypeCoder datatypeCoder)Gets or creates an instance of time zone datatype coder for a datatype coder.TimeZoneDatatypeCoder.TimeZoneCodecgetTimeZoneCodecFor(int fieldType)Obtains theTimeZoneDatatypeCoder.TimeZoneCodecimplementation for the field with the specified Firebird type.TimeZoneDatatypeCoder.TimeZoneCodecgetTimeZoneCodecFor(FieldDescriptor fieldDescriptor)Obtains theTimeZoneDatatypeCoder.TimeZoneCodecimplementation for the field described byfieldDescriptor.
 
- 
- 
- 
Constructor Detail- 
TimeZoneDatatypeCoderpublic TimeZoneDatatypeCoder(DatatypeCoder datatypeCoder) Initializes a time zone datatype coder.- Parameters:
- datatypeCoder- datatype coder
 
 
- 
 - 
Method Detail- 
getTimeZoneCodecForpublic TimeZoneDatatypeCoder.TimeZoneCodec getTimeZoneCodecFor(FieldDescriptor fieldDescriptor) throws java.sql.SQLException Obtains theTimeZoneDatatypeCoder.TimeZoneCodecimplementation for the field described byfieldDescriptor.- Parameters:
- fieldDescriptor- Field descriptor
- Returns:
- Suitable instance of TimeZoneCodec
- Throws:
- java.sql.SQLException- When- fieldDescriptoris not a TIME/TIMESTAMP WITH TIME ZONE type field
- See Also:
- getTimeZoneCodecFor(int)
 
 - 
getTimeZoneCodecForpublic TimeZoneDatatypeCoder.TimeZoneCodec getTimeZoneCodecFor(int fieldType) throws java.sql.SQLException Obtains theTimeZoneDatatypeCoder.TimeZoneCodecimplementation for the field with the specified Firebird type.- Parameters:
- fieldType- Firebird type of the field
- Returns:
- Suitable instance of TimeZoneCodec
- Throws:
- java.sql.SQLException- When- fieldTypeis not a TIME/TIMESTAMP WITH TIME ZONE type
 
 - 
getInstanceForpublic static TimeZoneDatatypeCoder getInstanceFor(DatatypeCoder datatypeCoder) Gets or creates an instance of time zone datatype coder for a datatype coder.- Parameters:
- datatypeCoder- Datatype coder instance
- Returns:
- Cached or new instance of TimeZoneDatatypeCoder
 
 
- 
 
-