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

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

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

    kukooBlog

    look to the master, follow the master, walk with the master, see through the master, become the master.

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      213 隨筆 :: 0 文章 :: 285 評論 :: 0 Trackbacks

    .... At the other end of a typical web application is the persistence layer. .... There are several open source object-to-relational mapping (ORM) frameworks that solve much of this problem. In particular, the Hibernate framework allows object-to-relational persistence and query service for Java. Hibernate has a medium learning curve for Java developers who are already familiar with SQL and the JDBC API. Hibernate persistent objects are based on plain-old Java objects and Java collections. ..... The following list contains the type of code that you would write inside a persistence framework:

     

    • Querying relational information into objects. Hibernate does this through an OO query language called HQL, or by using an expressive criteria API. HQL is very similar to SQL except you use objects instead of tables and fields instead of columns. There are some new specific HQL language elements to learn; however, they are easy to understand and well documented. HQL is a natural language to use for querying objects that require a small learning curve.
    • Saving, updating, and deleting information stored in a database.
    • Advanced object-to-relational mapping frameworks like Hibernate have support for most major SQL databases, and they support parent/child relationships, transactions, inheritance, and polymorphism.

     

    Here are some items that should be avoided in the persistence layer:

     

    • Business logic should be in a higher layer of your application. Only data access operations should be permitted.
    • You should not have persistence logic coupled with your presentation logic. Avoid logic in presentation components such as JSPs or servlet-based classes that communicate with data access directly.

     

    By isolating persistence logic into its own layer, the application becomes flexible to change without affecting code in other layers. For example, Hibernate could be replaced with another persistence framework or API without modification to the code in any other layer.

     

    Excerpt from "Wiring Your Web Application with Open Source Java" by Mark Eagle

     

    [NoteThis blog was migrated from my very old blog which was in the blogspirit.]


    Yourit ,
    Mycat Programming

    posted on 2005-06-02 09:14 kukooBlog 閱讀(878) 評論(0)  編輯  收藏 所屬分類: JavaProgramming
    主站蜘蛛池模板: 亚洲午夜免费视频| 中文字幕无码成人免费视频 | 日韩免费无码一区二区视频| 最近中文字幕高清免费中文字幕mv | 成人毛片视频免费网站观看| 日本三级2019在线观看免费| 国产成人精品免费视频网页大全| 2020因为爱你带字幕免费观看全集 | 亚洲国产成人久久精品app| 亚洲AV成人无码久久精品老人| 亚洲成A人片在线观看无码不卡| 曰韩亚洲av人人夜夜澡人人爽| 久久亚洲AV无码西西人体| 国产成人亚洲精品狼色在线| 亚洲精品无码久久一线| 国产亚洲精品一品区99热| 亚洲第一中文字幕| 亚洲福利一区二区三区| 亚洲日韩国产精品乱-久| 亚洲精品乱码久久久久久V| 婷婷亚洲综合五月天小说在线| 无遮挡免费一区二区三区 | 亚洲人成影院77777| 亚洲综合欧美色五月俺也去| 亚洲日韩亚洲另类激情文学| 无码色偷偷亚洲国内自拍| 一个人看的免费高清视频日本| 99久久成人国产精品免费 | 男男黄GAY片免费网站WWW| a级毛片免费观看在线| 国产日韩AV免费无码一区二区| 99久久久国产精品免费蜜臀| 永久免费毛片在线播放| 免费看男女下面日出水视频| 国产国拍亚洲精品福利| 久久精品蜜芽亚洲国产AV| 亚洲国产精华液2020| 精品国产污污免费网站入口| 亚洲w码欧洲s码免费| 国产极品美女高潮抽搐免费网站| 337p日本欧洲亚洲大胆裸体艺术|