Interface SqlConverter<T>

Type Parameters:
T - the target Java type this converter handles
All Superinterfaces:
Converter<T>, ConverterFunction<T>
All Known Implementing Classes:
BigDecimalConverter, BooleanConverter, ByteArrayConverter, ByteConverter, DoubleConverter, FloatConverter, GenericSqlConverter, IntegerConverter, LongConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringConverter

public interface SqlConverter<T> extends Converter<T>
Extends Converter to add SQL-specific metadata.

A SqlConverter is associated with one or more Types integer codes, allowing it to be used for converting values to and from database-specific representations.

  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Returns an array of Types integer codes that this converter is associated with.

    Methods inherited from interface org.litebridgedb.convert.converter.Converter

    primitiveType, type

    Methods inherited from interface org.litebridgedb.convert.converter.ConverterFunction

    convert
  • Method Details

    • sqlTypes

      int[] sqlTypes()
      Returns an array of Types integer codes that this converter is associated with.
      Returns:
      an array of SQL type codes