|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.columntranslator.SystemTimeColumnTranslator
The SystemTimeColumnTranslator translates a specific column value (default: 'SYSTEMTIME') into the current date/time if the column is of type 'DATE', 'TIMESTAMP' or 'TIME'.
Field Summary | |
static java.lang.String |
SYSTEM_TIME
The default string that will be converted into the current date/time. |
protected java.lang.String |
translateFrom
The column value that will be translated into the current/date time. |
Constructor Summary | |
SystemTimeColumnTranslator()
|
Method Summary | |
java.lang.String |
getTranslateFrom()
Returns the column value that will be translated into the current date/time. |
ColumnValue |
getValue(ColumnDef column,
ColumnValue columnValue)
Returns the translated column value. |
void |
setTranslateFrom(java.lang.String newVal)
Set the column value that will be translated into the current date/time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SYSTEM_TIME
protected java.lang.String translateFrom
Constructor Detail |
public SystemTimeColumnTranslator()
Method Detail |
public void setTranslateFrom(java.lang.String newVal)
newVal
- the column valuepublic java.lang.String getTranslateFrom()
public 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(ColumnDef, ColumnValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |