int pColumnNum, Object pTarget) {
Integer p = new Integer(pColumnNum+1);
Column.Type type = pColumn.getType();
if (Column.Type.BIGINT.equals(type)) {
LocalJavaField l = pMethod.newJavaField(long.class);
l.addLine(pResultSet, ".getLong(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Long.class, "(", l, ");");
pMethod.addEndIf();
} else if (pColumn.isBinaryColumn()) {
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ",
pResultSet, ".getBytes(", p, ");");
} else if (Column.Type.BIT.equals(type)) {
LocalJavaField b = pMethod.newJavaField(boolean.class);
b.addLine(pResultSet, ".getBoolean(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ", b,
" ? ", Boolean.class, ".TRUE : ", Boolean.class, ".FALSE;");
pMethod.addEndIf();
} else if (pColumn.isStringColumn()) {
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ",
pResultSet, ".getString(", p, ");");
} else if (Column.Type.DATE.equals(type)) {
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ",
pResultSet, ".getDate(", p, ");");
} else if (Column.Type.DOUBLE.equals(type)) {
LocalJavaField d = pMethod.newJavaField(double.class);
d.addLine(pResultSet, ".getDouble(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Double.class, "(", d, ");");
pMethod.addEndIf();
} else if (Column.Type.FLOAT.equals(type)) {
LocalJavaField f = pMethod.newJavaField(float.class);
f.addLine(pResultSet, ".getFloat(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Float.class, "(", f, ");");
pMethod.addEndIf();
} else if (Column.Type.INTEGER.equals(type)) {
LocalJavaField i = pMethod.newJavaField(int.class);
i.addLine(pResultSet, ".getInt(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Integer.class, "(", i, ");");
pMethod.addEndIf();
} else if (Column.Type.SMALLINT.equals(type)) {
LocalJavaField s = pMethod.newJavaField(short.class);
s.addLine(pResultSet, ".getShort(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Short.class, "(", s, ");");
pMethod.addEndIf();
} else if (Column.Type.TIME.equals(type)) {
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ",
pResultSet, ".getTime(", p, ");");
} else if (Column.Type.TIMESTAMP.equals(type)) {
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = ",
pResultSet, ".getTimestamp(", p, ");");
} else if (Column.Type.TINYINT.equals(type)) {
LocalJavaField b = pMethod.newJavaField(short.class);
b.addLine(pResultSet, ".getByte(", p, ");");
pMethod.addIf("!", pResultSet, ".wasNull()");
pMethod.addLine(pTarget, "[", Integer.toString(pColumnNum), "] = new ",
Byte.class, "(", b, ");");
pMethod.addEndIf();
} else {