<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

    主站蜘蛛池模板: 韩国免费三片在线视频| 亚洲精品无码久久久久AV麻豆| 亚洲精品色午夜无码专区日韩| 亚洲成色在线综合网站| 一级毛片免费全部播放| 国产成人亚洲精品影院| 亚洲一卡二卡三卡| 男女拍拍拍免费视频网站| 亚洲AV无码不卡在线观看下载| 国产亚洲一卡2卡3卡4卡新区| 日本视频免费在线| 一级毛片免费在线观看网站| 亚洲午夜国产精品无码| 久久精品国产影库免费看| 亚洲黄色在线电影| 成人毛片18岁女人毛片免费看| 久久久久久a亚洲欧洲AV| 日本免费一区二区三区四区五六区 | 精品熟女少妇a∨免费久久| 免费的一级片网站| 国产精品亚洲专区无码WEB| 又黄又爽无遮挡免费视频| 国产亚洲一卡2卡3卡4卡新区 | 日本不卡高清中文字幕免费| 亚洲精品色在线网站| 精品国产日韩亚洲一区| 男人都懂www深夜免费网站| 亚洲香蕉在线观看| 无码不卡亚洲成?人片| 亚洲国产高清国产拍精品| 亚洲美女在线国产| 99精品视频在线观看免费播放| 亚洲中文字幕无码中文| 亚洲乱码中文字幕综合234| 亚洲成人激情在线| 国产成人免费a在线资源| 亚洲爆乳少妇无码激情| 91麻豆精品国产自产在线观看亚洲| 99久久综合精品免费| 亚洲av无码专区在线观看下载| 成人毛片18女人毛片免费96|