|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ddlutils.io.ConverterConfiguration
public class ConverterConfiguration
Contains the configuration for converters, which convert between the Java data types corresponding to SQL data, and string representations.
| Constructor Summary | |
|---|---|
ConverterConfiguration()
Creates a new configuration object with the default converters. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterConfiguration()
| Method Detail |
|---|
public void registerConverter(int sqlTypeCode,
SqlTypeConverter converter)
sqlTypeCode - The type code, one of the Types constantsconverter - The converter
public void registerConverter(String tableName,
String columnName,
SqlTypeConverter converter)
tableName - The name of the tablecolumnName - The name of the columnconverter - The converter
public SqlTypeConverter getRegisteredConverter(Table table,
Column column)
table - The tablecolumn - The column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||