<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    yxhxj2006

    常用鏈接

    統計

    最新評論

    ibatis 開發指南 3

    ibatis的調試相對困難,出錯的時候主要依據是log4生成的log文件和.net的出錯提示,這方面要能比較熟練的看懂. 
    下面這個配置基本上包含了最復雜的功能:分頁\搜索\排序\緩存\傳值Hash表\返回hash表\動態sql 
    如果對下面這段配置能信手粘來的話,那開發速度將會大大的提升. 
    <statement id="XinxiTable_SelectAll" listClass="ArrayList" >
    resultMap="SimpleXinxi" parameterClass="Hashtable" cacheModel="xinxi-cache" > 
    SELECT 
    <dynamic prepend="top"> 
    <isNotEqual prepend="top" property="TopNum" compareValue = "0"> 
    $TopNum$ 
    </isNotEqual> 
    </dynamic> 

    FROM 
    (select a.[iXinxiID],a.[sXinxiTitle],a.[iXinxiClassId],b.[sClassName], 
    a.[dXinxiDate],a.[dXinxiYxq],a.[iXinxiHits],a.[sXinxiUser],a.[sRedirectUrl], 
    ROW_NUMBER() OVER( 
    <dynamic prepend="order by"> 
    <isEqual prepend="order by" property="Sort" compareValue = "0"> 
    a.iXinxiID desc 
    </isEqual> 
    <isEqual prepend="order by" property="Sort" compareValue = "1"> 
    a.iXinxiID asc 
    </isEqual> 
    <isEqual prepend="order by" property="Sort" compareValue = "2"> 
    a.iXinxiHits desc 
    </isEqual> 
    <isEqual prepend="order by" property="Sort" compareValue = "3"> 
    a.iXinxiHits asc 
    </isEqual> 
    </dynamic> 
    ) as row 
    FROM 
    [dbo].[XinxiTable] as a,[dbo].[XinxiClass] as b 
    <dynamic prepend="where"> 
    <isParameterPresent> 
    <isNotEmpty prepend="and" property="XinxiType" > 
    a.[iXinxiState]= $XinxiType$ 
    </isNotEmpty> 
    <isNotEqual prepend="and" property="XinxiClass" compareValue = "0"> 
    a.[iXinxiClassID]= $XinxiClass$ 
    </isNotEqual> 
    <isEqual prepend="and" property="SearchType" compareValue = "1"> 
    a.[sXinxiTitle] LIKE '%$Keyword$%' 
    </isEqual> 
    <isEqual prepend="and" property="SearchType" compareValue = "2"> 
    (a.[sXinxiTitle] LIKE '%$Keyword$%' or a.[sXinxiContent] LIKE '%$Keyword$%') 
    </isEqual> 
    </isParameterPresent> 
    </dynamic> 
    and a.iXinxiClassId=b.iClassId 
    )a 
    <dynamic prepend="where"> 
    <isParameterPresent> 
    <isEqual prepend="and" property="IsPage" compareValue = "1"> 
    row between $PageLower$ and $PageUpper$ 
    </isEqual> 
    </isParameterPresent> 
    </dynamic> 
    </statement> 

    posted on 2012-09-20 00:55 奮斗成就男人 閱讀(403) 評論(0)  編輯  收藏 所屬分類: J2EE

    主站蜘蛛池模板: 亚洲高清一区二区三区电影| 中文日韩亚洲欧美制服| 久久免费视频一区| 久久精品国产亚洲Aⅴ蜜臀色欲| 国产精品无码免费专区午夜| 免费大片黄手机在线观看| 免费大片黄在线观看| 日本免费人成视频播放| 自拍偷自拍亚洲精品偷一| 亚洲第一页综合图片自拍| 一个人看的www免费高清| 国产亚洲精品免费视频播放| 国产区在线免费观看| 亚洲成Av人片乱码色午夜| 日韩免费视频一区二区| 666精品国产精品亚洲| 成年网站免费视频A在线双飞| 中日韩亚洲人成无码网站| 全部免费国产潢色一级| 九九久久精品国产免费看小说| 亚洲精品成a人在线观看| a级特黄毛片免费观看| 亚洲国产女人aaa毛片在线| 1000部拍拍拍18免费网站| 亚洲综合精品第一页| mm1313亚洲精品国产| 在线观看免费无码专区| 国产成人va亚洲电影| 中文字幕亚洲激情| 一区二区免费视频| 亚洲日本成本人观看| 亚洲午夜福利717| 精品国产sm捆绑最大网免费站| 亚洲国产精品自在自线观看| 久久久久亚洲爆乳少妇无| 4444www免费看| 国产亚洲精品美女久久久久| 亚洲不卡av不卡一区二区| 成年美女黄网站色大免费视频| 真人无码作爱免费视频| 日产亚洲一区二区三区|