<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 奮斗成就男人 閱讀(410) 評論(0)  編輯  收藏 所屬分類: J2EE

    主站蜘蛛池模板: 亚洲色图.com| 亚洲高清不卡视频| 免费国产黄网站在线看| 女人18毛片水真多免费播放| 亚洲欧洲国产经精品香蕉网| 午夜影院免费观看| 久久精品国产精品亚洲毛片| 成人无码WWW免费视频| 国产成人综合亚洲AV第一页| 久久精品成人免费观看97| 亚洲av一本岛在线播放| 黄页网站在线观看免费高清| 亚洲xxxxxx| 国产精品久久久久影院免费| 美女黄频a美女大全免费皮| 亚洲人午夜射精精品日韩| 2022国内精品免费福利视频| 亚洲人成伊人成综合网久久久| A片在线免费观看| 亚洲激情视频网站| 天天摸天天操免费播放小视频| 亚洲色大18成人网站WWW在线播放| 日本19禁啪啪无遮挡免费动图| 黄网站色视频免费观看45分钟| 亚洲一区二区三区AV无码 | 精品国产日韩亚洲一区在线| 四虎影视精品永久免费网站| 一个人看的www视频免费在线观看 一个人看的免费观看日本视频www | 亚洲成a人一区二区三区| 国产线视频精品免费观看视频| 国产AV无码专区亚洲AV男同| 日韩在线永久免费播放| 亚洲久悠悠色悠在线播放| vvvv99日韩精品亚洲| 日本免费一区二区久久人人澡| 亚洲毛片免费观看| 免费观看午夜在线欧差毛片| 大地影院MV在线观看视频免费 | 亚洲一区二区三区久久久久| 四虎影库久免费视频| 日本卡1卡2卡三卡免费|