String metaName = rsMeta.getColumnName(col).toLowerCase().trim();
String tableName = rsMeta.getTableName(col);
DOBOProperty property = DOBOProperty.getDOBOPropertyByName(
tableName, metaName);
if (property == null) {
property = new DOBOProperty();
property.setDbType(rsMeta.getColumnType(col));
}
instance.putMetaProperty(metaName, property);
if (rsMeta.getColumnType(col) == Types.BLOB
|| rsMeta.getColumnType(col) == Types.LONGVARBINARY) {
log.info("The BLOB COLUMN::::::::::::::" + metaName);
continue;
}
// /DOBOProperty 获取定义的DOBOProperty
Object oValue = rs.getObject(col);
try {
if (oValue != null) {
if (property.isInt()) {
try {
instance.putValue(metaName, new Integer(rs
.getInt(col)));
} catch (Exception e) {
instance.putValue(metaName, rs
.getString(col));
}
} else if (property.isLong()) {
try {
instance.putValue(metaName, new Long(rs
.getLong(col)));
} catch (Exception e) {
instance.putValue(metaName, rs
.getString(col));
}
} else if (property.isDouble()) {
double dd = rs.getDouble(col);
instance.putValue(metaName, new Double(dd));
} else if (property.isDateType()) {
instance.putValue(metaName, rs.getDate(col));
} else if (property.isTimestampType()) {
instance.putValue(metaName, rs.getTimestamp(col));
} else if (property.isString() || property.isClobType()) {
// try {
if (rs.getString(col) != null) {
if (ds != null && ds.getL10n().equals("---")) {
instance.putValue(metaName, StringUtil