日期:2014-05-19  浏览次数:20762 次

求注释
public SystemPage getSearchSystem(String name,int pageno,int pagesize)
{
commandContext.clear();
commandContext.setCommandName("getSystemCommonVOs");
commandContext.setServiceName("systemService");
SystemCommonVO vo = new SystemCommonVO();
HashMap<String,Object> parmap = new HashMap<String,Object>(2);
parmap.put("name",name);
vo.setSQLStatement("system.getSystemsByConfigMap", parmap);
vo.setSQLTable("SYSSYSTEM");
commandContext.setCommandParams(new Object[]{vo,pageno,pagesize},new Class[]{SystemCommonVO.class,Integer.class,Integer.class});
SystemPage page = (SystemPage)this.executeCommandContext().getResult();
return page;
}

------解决方案--------------------
里面用到的类都是自己封装好的,实现的功能是根据name进行搜索,返回多少条记录。
------解决方案--------------------
封装了一个查询的方法
------解决方案--------------------
貌似是一个返回一个带分页的结果列表集合
------解决方案--------------------
好像是从SYSSYSTEM表中,根据参数传递的name,取得第pageno页的结果,每页的结果个数是pagesize