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

来源:互联网 发布:淘宝上的瘦身贴有用吗 编辑:程序博客网 时间:2024/05/29 18:36

通过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);

 

 

原创粉丝点击