Class ConverterConfiguration

java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.ConverterConfiguration

public class ConverterConfiguration extends Object
Contains the configuration for converters, which convert between the Java data types corresponding to SQL data, and string representations.
Version:
$Revision: 289996 $
  • Constructor Details

    • ConverterConfiguration

      public ConverterConfiguration()
      Creates a new configuration object with the default converters.
  • Method Details

    • registerConverter

      public void registerConverter(int sqlTypeCode, SqlTypeConverter converter)
      Registers the given type converter for an sql type.
      Parameters:
      sqlTypeCode - The type code, one of the Types constants
      converter - The converter
    • registerConverter

      public void registerConverter(String tableName, String columnName, SqlTypeConverter converter)
      Registers the given type converter for the specified column.
      Parameters:
      tableName - The name of the table
      columnName - The name of the column
      converter - The converter
    • getRegisteredConverter

      public SqlTypeConverter getRegisteredConverter(Table table, Column column)
      Returns the converter registered for the specified column.
      Parameters:
      table - The table
      column - The column
      Returns:
      The converter