Thinkfeng
          Thinkfeng

           

          public  List find( final  String hsql,  final   int  firstRow,  final   int  maxRow)  throws  Exception 
             
          return  getHibernateTemplate().executeFind( new  HibernateCallback() 
               
          public  Object doInHibernate(Session s)  throws  HibernateException, SQLException 
                     Query query  
          =  s.createQuery(hsql); 
                     query.setFirstResult(firstRow); 
                     query.setMaxResults(maxRow); 
                     List list  
          =  query.list(); 
                     
          return  list; 
                     }
           
               }
          ); 
          }

           

          posted on 2008-08-29 17:21 Thinkfeng 閱讀(194) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
           
          主站蜘蛛池模板: 新绛县| 昆山市| 广饶县| 东山县| 金昌市| 绍兴县| 惠水县| 大连市| 海兴县| 博野县| 土默特左旗| 儋州市| 宁远县| 连江县| 修武县| 益阳市| 岗巴县| 高尔夫| 甘肃省| 兴仁县| 驻马店市| 郸城县| 利川市| 黔西县| 临颍县| 亳州市| 板桥市| 大足县| 福清市| 昌宁县| 安徽省| 迁西县| 成武县| 察隅县| 青冈县| 瑞昌市| 黄平县| 镇巴县| 昌平区| 承德市| 兰坪|