Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: What is a "Data Object"?

ashraf galal

2004-01-02




Chad;

It is the implementation of the business object pattern.

Term:  Business Object:

An object that implements business logic and/or business data.

Business data and business logic are implemented in coarse-grained objects called business objects.

In J2EE, business objects are implemented as session or entity beans.

In some cases, a business object could be an arbitrary java object that provides some services.

 

See attached document for class and sequence diagrams

 

 

I do think that these  diagrams must answer most of your questions.

 

We might implement the business object using the composite entity pattern (you are right) or DAO or other different implementation.

 

Regarding your question ?Can the Presentation Tier directly
instantiate and use "Data Objects"? ?

 

We always use the business delegate pattern to decouple the tier and hide the implementation details. It is better not to use it directly from client tier (my opinion).

Ashraf Galal
(416)804-8359


Add photos to your messages with MSN 8. Get 2 months FREE*. ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

Attachment: bussinesss object class and sequence diagrams.doc
©2008 junlu.com - Jax Systems, LLC, U.S.A.