Class ConverterConfiguration
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.ConverterConfiguration
Contains the configuration for converters, which convert between the Java data types
corresponding to SQL data, and string representations.
- Version:
- $Revision: 289996 $
-
Constructor Summary
ConstructorDescriptionCreates a new configuration object with the default converters. -
Method Summary
Modifier and TypeMethodDescriptiongetRegisteredConverter
(Table table, Column column) Returns the converter registered for the specified column.void
registerConverter
(int sqlTypeCode, SqlTypeConverter converter) Registers the given type converter for an sql type.void
registerConverter
(String tableName, String columnName, SqlTypeConverter converter) Registers the given type converter for the specified column.
-
Constructor Details
-
ConverterConfiguration
public ConverterConfiguration()Creates a new configuration object with the default converters.
-
-
Method Details
-
registerConverter
Registers the given type converter for an sql type.- Parameters:
sqlTypeCode
- The type code, one of theTypes
constantsconverter
- The converter
-
registerConverter
Registers the given type converter for the specified column.- Parameters:
tableName
- The name of the tablecolumnName
- The name of the columnconverter
- The converter
-
getRegisteredConverter
Returns the converter registered for the specified column.- Parameters:
table
- The tablecolumn
- The column- Returns:
- The converter
-