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:
- Encryption : The translator encrypts a string. This can be used
when inserting passwords into the database that should have one-way
encryption
- File Reader : The translator identifies the string as a filename and
reads the file in as the new column value.
- Version:
- 0.6
- Author:
- Chris Nagy
getValue
public ColumnValue getValue(ColumnDef column,
ColumnValue columnValue)
- Returns the translated column value.
- Parameters:
column
- the definition of the columncolumnValue
- the value of the column read from a file
- Returns:
- the new value of the column