日期:2014-05-18 浏览次数:20791 次
public List getByPage(final String hql,final int startNo,final int pageSize)
throws GISException{
List list = this.getHibernateTemplate().executeFind(
new HibernateCallback(){
public Object doInHibernate(Session session) throws HibernateException,SQLException{
List result = session.createQuery(hql).setFirstResult(startNo).setMaxResults(pageSize).list();
return result;
}
}
);
return list;
}