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

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 亚洲韩国—中文字幕| 国产一区二区三区免费看| 国产亚洲精品a在线无码| 高清免费久久午夜精品| 色噜噜亚洲精品中文字幕| 无码亚洲成a人在线观看| 成人无码区免费视频观看| 亚洲天堂2016| 国产美女在线精品免费观看| 久久久国产亚洲精品| 好男人视频在线观看免费看片| 亚洲中文字幕乱码一区| 日本特黄特色免费大片| 精品亚洲福利一区二区| 亚洲国产精品一区二区第四页| 国产成人自产拍免费视频| 久久精品国产亚洲网站| 国产免费一区二区三区在线观看| 亚洲国产精品一区二区久久| 91久久精品国产免费直播| 亚洲精品久久无码| 国产亚洲美女精品久久久2020| 永久免费AV无码网站国产| 免费国产在线观看| sss日本免费完整版在线观看| 国产成A人亚洲精V品无码| 亚洲电影在线免费观看| 国产成人精品久久亚洲高清不卡| 亚洲国产香蕉人人爽成AV片久久 | 免费无码国产在线观国内自拍中文字幕| 成人免费视频国产| 成人av片无码免费天天看| 亚洲视频精品在线观看| 色吊丝永久在线观看最新免费| 色婷婷综合缴情综免费观看| 亚洲精品高清久久| 国产免费观看网站| 全免费a级毛片免费看| 亚洲日韩精品无码AV海量| 激情97综合亚洲色婷婷五| 亚色九九九全国免费视频|