|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.columntranslator.IntToBooleanColumnTranslator
The IntToBooleanColumnTranslator translates a column value (default '1') into 'true' and (default '0') into 'false' 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 | |
IntToBooleanColumnTranslator()
|
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 IntToBooleanColumnTranslator()
Method Detail |
public void setTrueValue(int newVal)
newVal
- the integer valuepublic void setFalseValue(int newVal)
newVal
- the integer valuepublic ColumnValue getValue(ColumnDef column, ColumnValue columnValue)
ColumnTranslator
getValue
in interface ColumnTranslator
column
- 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 |