net.sourceforge.jdbcimporter
Interface ColumnTranslator

All Known Subinterfaces:
DbColumnTranslator
All Known Implementing Classes:
BooleanToIntColumnTranslator, FileToStringColumnTranslator, IntToBooleanColumnTranslator, StringToFileColumnTranslator, SystemTimeColumnTranslator

public interface ColumnTranslator

The ColumnTranslator interface defines the method used to translate a column value read from a file into a column value to be imported into the database. Some examples:

Version:
0.6
Author:
Chris Nagy

Method Summary
 ColumnValue getValue(ColumnDef column, ColumnValue columnValue)
          Returns the translated column value.
 

Method Detail

getValue

public ColumnValue getValue(ColumnDef column,
                            ColumnValue columnValue)
Returns the translated column value.

Parameters:
column - the definition of the column
columnValue - the value of the column read from a file
Returns:
the new value of the column