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

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

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

    afunms

    My Software,My Dream—Forge a more perfect NMS product.

    perfect DAO solution

    DAO design was revised repeatedly recent days,I am glad of  getting a perfect DAO solution
    finally.
      The sticking point in DAO design is where a DB connection is opened and when
    to close it. Sometimes,one action executes only one DAO method,the connection
    should be closed immediately follow the method. Sometimes, However, one action
    may contain many DAOs or a series of methods in a DAO, (in other words, called transaction).
    A same connection is used in DAOs,so closing connection after method execution is incorrect.
      Therefore,I wrote two DAO's constructors for above two scenarios.For the first scenario,
    opening a connection inside DAO,and close it at once after a method is invoked.For the second
    scenario,a connection is created outside DAO, when instantiating a new DAO class,the connection
    is passed from outside.We cope with this case (a transaction) in a service,the service invokes more
    than one DAOs.DB connection is opened when service starting,and closed at the end of service.

    posted on 2008-01-09 10:21 afunms 閱讀(167) 評論(0)  編輯  收藏


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


    網站導航:
     

    My Links

    News

    留言簿(18)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 成人免费777777被爆出| 亚洲午夜在线一区| 日本一区二区在线免费观看 | 亚洲AV无码国产精品麻豆天美| 黄色一级免费网站| 亚洲精品麻豆av| 本道天堂成在人线av无码免费| 亚洲成a人片在线播放| 三年片在线观看免费观看大全中国| 精品国产免费观看久久久| 久久亚洲精品国产亚洲老地址| 无码国产精品久久一区免费| 亚洲色偷偷色噜噜狠狠99网| 最近2019中文字幕mv免费看 | 色欲aⅴ亚洲情无码AV| 暖暖日本免费在线视频 | 成人电影在线免费观看| 久久亚洲精品中文字幕三区| 国产成人精品一区二区三区免费| 亚洲AV无码成人精品区天堂| 免费观看美女用震蛋喷水的视频| 亚洲人成77777在线观看网| 日韩免费在线观看| 国产免费黄色无码视频| 亚洲国产精品人久久| 免费影院未满十八勿进网站| 亚洲a无码综合a国产av中文| 人人狠狠综合久久亚洲高清| 免费看黄的成人APP| 亚洲成人午夜电影| 国产成人精品男人免费| 一区二区三区免费电影| 久久精品国产96精品亚洲| A在线观看免费网站大全| 老司机福利在线免费观看| 亚洲国产精品一区第二页| 波多野结衣免费在线观看| 特级毛片A级毛片免费播放| 久久综合九九亚洲一区| 免费无码又爽又刺激聊天APP| 黄网站色视频免费观看45分钟|