|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbcimporter.columntranslator.BooleanToIntColumnTranslator
The BooleanToIntColumnTranslator translates a column value of 'true' into an integer (default '1') and 'false' into an integer (default '0') if the column is of type 'BOOLEAN'.
| Field Summary | |
protected int |
falseValue
The integer representing the column value 'false'. |
protected int |
trueValue
The integer representing the column value 'true'. |
| Constructor Summary | |
BooleanToIntColumnTranslator()
|
|
| Method Summary | |
ColumnValue |
getValue(ColumnDef column,
ColumnValue columnValue)
Returns the translated column value. |
void |
setFalseValue(int newVal)
Sets the integer value representing 'false'. |
void |
setTrueValue(int newVal)
Sets the integer value representing 'true'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int trueValue
protected int falseValue
| Constructor Detail |
public BooleanToIntColumnTranslator()
| Method Detail |
public void setTrueValue(int newVal)
newVal - the integer valuepublic void setFalseValue(int newVal)
newVal - the integer value
public ColumnValue getValue(ColumnDef column,
ColumnValue columnValue)
ColumnTranslator
getValue in interface ColumnTranslatorcolumn - the definition of the columncolumnValue - the value of the column read from a file
ColumnTranslator.getValue(net.sourceforge.jdbcimporter.ColumnDef, net.sourceforge.jdbcimporter.ColumnValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||