<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)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 亚洲中文字幕一二三四区| 亚洲国产一区国产亚洲| 国产av无码专区亚洲av毛片搜| av免费不卡国产观看| 67194在线午夜亚洲| 好男人视频社区精品免费| 亚洲三级在线观看| 日韩免费a级在线观看| 国产一区二区三区亚洲综合| 又粗又大又硬又爽的免费视频| 国产成人综合亚洲| 国产成人精品日本亚洲专区61| 最近免费字幕中文大全| 亚洲视频在线视频| 成人免费黄色网址| 亚洲AV无码一区二区三区牲色| 国产午夜免费秋霞影院| j8又粗又长又硬又爽免费视频| 久久久久亚洲av无码专区蜜芽| 国产高清免费视频| 国产精品亚洲片在线花蝴蝶| 亚洲国产一区视频| 久久久高清日本道免费观看| 亚洲欧洲日产韩国在线| 成全影视免费观看大全二| 国产精品亚洲一区二区三区| 国产国拍精品亚洲AV片| 久久www免费人成看片| 国产精品亚洲精品爽爽| 亚洲av永久无码精品古装片| aa级一级天堂片免费观看| 黄页免费视频播放在线播放| 亚洲韩国精品无码一区二区三区| 永久在线免费观看| 麻豆91免费视频| 亚洲美女视频免费| 亚洲AV无码乱码在线观看| 99久久精品免费视频| 亚洲AV噜噜一区二区三区| 亚洲Av永久无码精品三区在线| 免费无码A片一区二三区|