官术网_书友最值得收藏!

Benefits of business-object pattern usage

Here is a summary of the benefits of the business-object pattern:

  • BOs are responsible for managing their business rules and persistence. This leads to a more reusable code. Clients access BOs that are fully responsible for the behavior of the application. In our example, ProfessorBO can be called from several points. As well as being reusable, there is a uniformity of behavior. As a consequence, another benefit is faster and more efficient maintenance.
  • BOs are responsible for separating the business logic from the rest of the application, which increases the cohesion of the code (separation of responsibilities).
  • BOs help separate business logic from data persistence.

The following is the class diagram for the business-object pattern:

For more complex applications, we typically have a Session Fa?ade that represents a set of related use cases. As we have already seen, the Session Fa?ade offers high-level methods for clients. For its part, the Session Fa?ade can manage and combine BOs that act as real agents or representatives of real-world objects.

The following is the Business Object sequence diagram:

主站蜘蛛池模板: 江永县| 休宁县| 靖江市| 临泽县| 洪雅县| 南阳市| 沙湾县| 柞水县| 桐柏县| 金寨县| 三穗县| 长宁县| 托克逊县| 东源县| 台东市| 科技| 瓮安县| 丹江口市| 瑞安市| 铅山县| 松溪县| 潮州市| 商城县| 邮箱| 元江| 娄烦县| 平原县| 阆中市| 宜春市| 平定县| 西乌珠穆沁旗| 甘肃省| 平塘县| 沂南县| 金乡县| 墨玉县| 广西| 永康市| 高密市| 南澳县| 吉木乃县|