CurrencyInfo cur=new CurrencyInfo();
ICurrency c=CurrencyFactory.getRemotInstance();//建立实体对象EntityViewInfo evi=new EntityViewInfo();//建立视图信息FilterInfo filterinfo=new FilterInfO();//建立过滤条件filterInfo.getFilterItems().add(new FilterItemmInfo("number","ddff",CompareType.EQUELS));filterInfo.getFilterItems().add(new FilterItemInfo("id","ddff",CompareType.EQUELS));filterInfo.setMaskString("(#0 and #1)");evi.setFilter(i);//添加过滤条件evi.getSelector().add(new SelectorItemInfo("id"));//添加获取属性evi.getSelector().add(new SelectorItemInfo("*"));...//三种获取集合方法
1.获取所有数据CurrencyCollection co=c.getCurrencyCollection();//获取集合2.获取满足上述条件的所有数据CurrencyCollection currencyCollection=c.getCurrencyCollection(evi);3.获取所有oql缩写的条件的所有数据CurrencyCollection currencuCollection=c.getCurrencyCollection(oql);