日期:2014-05-19 浏览次数:20686 次
public Container<Test> findTest(Test test,int firstResult ,int maxResults)throws DataAccessException{
if(log.isDebugEnabled()){
log.debug("start findTest method");
}
Container<Test> container = new Container<Test>();
List<Test> list = testDao.list(test, firstResult , maxResults);
container.setResults(list);
container.setTotalRows(testDao.count(test));
//container.getResults()
if(log.isDebugEnabled()){
log.debug("end findTest method");
}
return container;
}