您的位置:首页 > 其它

EASBOS根据id获取对象方法来进行过滤字段

2011-10-26 15:29 405 查看
通过EAS提供的对象获取数据方法时,可以通过selectorlItemConllection来过滤出只需要的字段

String entryId = String.valueOf(getUIContext().get("EntryID"));

SelectorItemCollection sicerci = new SelectorItemCollection(); 查询过滤对象类

sicerci.add("id"); 需要过滤出的字段

sicerci.add("parent.*");

sicerci.add("parent.weighType.*");

sicerci.add("weighUnit.*");

sicerci.add("opponentweight");

sicerci.add("opposingFirstWeigh");

WeighNoticeBillEntryInfo entryInfo = WeighNoticeBillEntryFactory.getRemoteInstance().getWeighNoticeBillEntryInfo(new ObjectUuidPK(entryId), sicerci);

获取对象方法 可以通过getValue来获取

如:

WeighNoticeBillEntryFactory.getRemoteInstance().getValue("where id= "+id);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐