1、通过聚合VO对象类型获取
方法:
@Override
public Collection retrieveAll(Class className) throws BusinessException {
Collection<Object> aggVOs= getQueryService().queryBillOfVOByCond(
className," 1=1 ",true,false);// true:ignoreDrEquals1,false:bLazyLoad
return aggVOs;
}
调用:
List<XXXAggVO> aggVOs = (List<XXXAggVO>) retrieveAll(XXXAggVO.class);
2、通过主表主键获取
BillQuery<XXXAggVO> query = new BillQuery<XXXAggVO>(XXXAggVO.class);
XXXAggVO[] aggVOs = query.query(pkstr);