Thinkfeng
          Thinkfeng

          導航

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789
          統計
          • 隨筆 - 2
          • 文章 - 4
          • 評論 - 2
          • 引用 - 0

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

           

           

          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 閱讀(195) 評論(0)  編輯  收藏

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


          網站導航:
           
           
          主站蜘蛛池模板: 饶阳县| 太白县| 彰武县| 阜阳市| 张家界市| 邵阳县| 沙河市| 北流市| 班玛县| 扬州市| 罗甸县| 获嘉县| 雅江县| 灵川县| 雷波县| 仁寿县| 昭平县| 武夷山市| 宣威市| 龙岩市| 禹州市| 任丘市| 奎屯市| 汉川市| 乌拉特中旗| 呼玛县| 安岳县| 邵阳市| 镇原县| 阜宁县| 武汉市| 张北县| 安义县| 汤阴县| 孝昌县| 江陵县| 黄石市| 个旧市| 昌都县| 黎平县| 修文县|