Class OracleOffsetDateTimeConverter

java.lang.Object
org.litebridge.convert.converter.OffsetDateTimeConverter
org.litebridge.db.oracle.convert.OracleOffsetDateTimeConverter
All Implemented Interfaces:
Converter<OffsetDateTime>, ConverterFunction<OffsetDateTime>, SqlConverter<OffsetDateTime>

public final class OracleOffsetDateTimeConverter extends OffsetDateTimeConverter
A specialised converter for Oracle-specific OffsetDateTime SQL types.

This class extends OffsetDateTimeConverter to handle Oracle-specific TIMESTAMPTZ SQL types alongside the standard TIMESTAMP_WITH_TIMEZONE. It provides compatibility for Oracle's `TIMESTAMPTZ` type and ensures proper conversion to OffsetDateTime.

Key functionality includes:

  • Conversion of Oracle-specific TIMESTAMPTZ objects to OffsetDateTime.
  • Fallback handling to ZonedDateTime when direct conversion from TIMESTAMPTZ fails.
  • Delegation to the parent class OffsetDateTimeConverter when the input value type is unsupported by this implementation.

The converter supports the following SQL types:

Thread safety: The class is immutable and thread-safe.