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

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 免费人成网站在线观看10分钟| 中文成人久久久久影院免费观看| 100部毛片免费全部播放完整| 亚洲国产综合无码一区 | 亚洲国产成人超福利久久精品| 两性色午夜免费视频| 国产亚洲精品无码拍拍拍色欲| 又大又硬又粗又黄的视频免费看| 免费a级黄色毛片| 曰批免费视频播放在线看片二| 亚洲人成人无码网www国产| 青青草国产免费国产是公开| 亚洲日本韩国在线| 国产在线精品一区免费香蕉| 亚洲精品卡2卡3卡4卡5卡区| 免费国产成人午夜在线观看| 夜夜亚洲天天久久| 国产妇乱子伦视频免费| 亚洲久悠悠色悠在线播放| 在线看片无码永久免费aⅴ| 青草青草视频2免费观看| 夜夜春亚洲嫩草影院| 亚洲电影免费在线观看| 亚洲人成网网址在线看| 成年女人永久免费观看片| 日亚毛片免费乱码不卡一区 | 在线jyzzjyzz免费视频| 国产青草亚洲香蕉精品久久| 亚洲精品动漫人成3d在线| 在线观看肉片AV网站免费| 亚洲av极品无码专区在线观看| 在线免费观看一级毛片| 一级特级女人18毛片免费视频| 亚洲av无码国产精品色午夜字幕| 一本岛高清v不卡免费一三区| 激情婷婷成人亚洲综合| 亚洲AV一宅男色影视| 好爽…又高潮了免费毛片| 一级做a爰全过程免费视频毛片| 亚洲国产成人私人影院| 色视频色露露永久免费观看|