java.lang.Object
org.litebridge.convert.converter.OffsetDateTimeConverter
- All Implemented Interfaces:
Converter<OffsetDateTime>,ConverterFunction<OffsetDateTime>,SqlConverter<OffsetDateTime>
A converter for
OffsetDateTimeConverter values.
Handles Types.TIMESTAMP.
-
Field Summary
Fields inherited from interface org.litebridge.convert.converter.Converter
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.convert.converter.Converter
primitiveType, priority
-
Constructor Details
-
OffsetDateTimeConverter
public OffsetDateTimeConverter()
-
-
Method Details
-
convert
Description copied from interface:ConverterFunctionConverts the given value to the target type.- Specified by:
convertin interfaceConverterFunction<OffsetDateTime>- Parameters:
value- the value to convert, may benull- Returns:
- the converted value, or
nullif the input wasnullor could not be converted
-
type
Returns the target Java class this converter handles.- Specified by:
typein interfaceConverter<OffsetDateTime>- Returns:
OffsetDateTime.class
-
sqlTypes
public int[] sqlTypes()Returns the SQL types associated with this converter.- Specified by:
sqlTypesin interfaceSqlConverter<OffsetDateTime>- Returns:
- an array containing
Types.TIMESTAMP_WITH_TIMEZONE
-