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