`
dragonxiangfu
  • 浏览: 157032 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

给ADF EO的属性设置值

 
阅读更多

继承EO的对象类,在该类中使用下面的代码片段。

entityDef是EO的定义类对象,需要先确定属性的类型。

  1. AttributeDefatrDef=
  2. entityDef.getAttributeDefImpl(attributeName);
  3. if("classjava.math.BigDecimal".equals(atrDef.getJavaType().toString())){
  4. BigDecimalbdValue=newBigDecimal(strColValue);
  5. this.setAttribute(attributeName,bdValue);
  6. }elseif(...){
  7. ......
  8. }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics