关键字:ADF,EO,属性
继承EO的对象类,在该类中使用下面的代码片段。
entityDef是EO的定义类对象,需要先确定属性的类型。
AttributeDef atrDef =
entityDef.getAttributeDefImpl(attributeName);
if ("class java.math.BigDecimal".equals(atrDef.getJavaType().toString())) {
BigDecimal bdValue = new BigDecimal(strColValue);
this.setAttribute(attributeName, bdValue);
} else if (...) {
... ...
}