public class ConverterConfiguration extends Object
| Constructor and Description |
|---|
ConverterConfiguration()
Creates a new configuration object with the default converters.
|
| Modifier and Type | Method and Description |
|---|---|
SqlTypeConverter |
getRegisteredConverter(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.
|
public ConverterConfiguration()
public void registerConverter(int sqlTypeCode,
SqlTypeConverter converter)
sqlTypeCode - The type code, one of the Types constantsconverter - The converterpublic void registerConverter(String tableName, String columnName, SqlTypeConverter converter)
tableName - The name of the tablecolumnName - The name of the columnconverter - The converterpublic SqlTypeConverter getRegisteredConverter(Table table, Column column)
table - The tablecolumn - The columnCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.