<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

    主站蜘蛛池模板: 亚洲人成网站影音先锋播放| 黄页网站在线免费观看| 伊人久久综在合线亚洲91| 99无码人妻一区二区三区免费| 亚洲av无码av制服另类专区| 日韩免费的视频在线观看香蕉| 亚洲国产亚洲片在线观看播放 | 国产免费AV片无码永久免费| 51精品视频免费国产专区| 亚洲娇小性色xxxx| 亚洲四虎永久在线播放| 亚洲中文字幕无码一久久区| 鲁大师在线影院免费观看| 三级黄色免费观看| 一个人看的www视频免费在线观看 一个人看的免费观看日本视频www | 亚洲AV网一区二区三区| 2019亚洲午夜无码天堂| 亚洲伊人久久精品| 亚洲电影免费观看| 久久99亚洲网美利坚合众国 | 亚洲中文字幕无码av永久| 亚洲国产日韩在线成人蜜芽| 亚洲国产天堂在线观看| 亚洲AV中文无码乱人伦下载| 国产成人高清亚洲| 亚洲午夜激情视频| 在线观看亚洲精品国产| 中文字幕亚洲不卡在线亚瑟| 久久www免费人成看片| 特a级免费高清黄色片| 黄网站色视频免费看无下截| 处破女第一次亚洲18分钟| 国产亚洲精品国产福利在线观看| 亚洲欧洲日韩不卡| 久久亚洲国产精品成人AV秋霞 | 国产精品亚洲综合网站| 亚洲理论在线观看| 亚洲国产美女福利直播秀一区二区| 亚洲毛片不卡av在线播放一区| 91香蕉视频免费| 日本黄色免费观看|