use of org.talend.cwm.relational.TdSqlDataType in project tdi-studio-se by Talend.
the class FillParametersForDatabaseConnectionMigrationTask method fillParamaters.
/**
* DOC sgandon Comment method "fillParamaters".
*
* @param tcol
*/
private void fillParamaters(List<TdColumn> allColumns) {
for (TdColumn tdCol : allColumns) {
TdSqlDataType sqlDataType = RelationalFactory.eINSTANCE.createTdSqlDataType();
// it is impossible to find out what is the java data type from the type name
// because every jdbc constructor may implement their own types
// see http://download.oracle.com/javase/1.3/docs/guide/jdbc/getstart/mapping.html#table1
// so we set it to NULL type and 0.
// TOP may test it and retreive it from the DB when necessary.
sqlDataType.setName(NULL_SQL_TYPE_NAME);
sqlDataType.setJavaDataType(java.sql.Types.NULL);
tdCol.setSqlDataType(sqlDataType);
}
}
Aggregations