//tJavaRow
Class cls = Class.forName(input_row.getClass().getName());
Class clsOut = Class.forName(output_row.getClass().getName());
java.lang.reflect.Field fieldlist[] = cls.getDeclaredFields();
java.lang.reflect.Field fieldlistOut[] = clsOut.getDeclaredFields();
for (int i = 0; i < fieldlist.length; i++) {
java.lang.reflect.Field fld = fieldlist[i];
java.lang.reflect.Field fldOut = fieldlistOut[i];
int mod = fld.getModifiers();
if ( java.lang.reflect.Modifier.toString(mod).equals("public")) {
if ( fld.getType().getName().equals("java.lang.String") ) {
fldOut.set(output_row, "\"" + fld.get(input_row) + "\"");
} else {
fldOut.set(output_row, fld.get(input_row));
}
}
}
System.out.println("addr:"+output_row.addr);
Talend tJavaRow quote String columns
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.