Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
What is a "Data Object "?

What is a "Data Object "?

2004-01-03       - By ashraf galal

 Back
Reply:     1     2     3     4     5     6     7     8     9  

<html><div style='background-color:'><P class=MsoNormal style="MARGIN: 0in 0in
0pt"><TT><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'
">Chad;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">Regarding your first comment:<o:p><
/o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">If you have a look at the sequence
diagram attached with this class diagram (which I wasn�t able to send it to you
since the message must not be greater than 50K and it also from the book), you
will find that the business object might be stored in persistence storage.<o:p>
</o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">This persistence storage could be
any thing you like, entity bean, java class, flat file, �etc.<o:p></o:p></SPAN>
</TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">To have the big picture please get a
look to the DAO class diagram and sequence diagram this will explain more about
the data object.<o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">The term data object, we use that
term to indicate any object that persist in storage. <o:p></o:p></SPAN></TT></P
>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">The business object pattern does not
mean data object. <o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">The following is from the book too:
<o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">Business object is an
object that implements business logic and/or business data.<o:p></o:p></SPAN><
/P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">`<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">Business data and
business logic are implemented in coarse-grained objects called business
objects.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">&nbsp;<o:p></o:p></SPAN
></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">In J2EE, business
objects are implemented as session or entity beans.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt;
FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt">In some cases, a
business object could be an arbitrary java object that provides some services.
<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">&nbsp;<o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">&nbsp;<o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">Regarding the second comment I think
you are right. I confused you but what I want to say that we use business
delegate pattern to avoid direct invocation from the client.<o:p></o:p></SPAN><
/TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">So instantiating the pattern in
client is not recommended.<o:p></o:p></SPAN></TT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><TT><SPAN style="FONT-SIZE: 10pt
; COLOR: black; FONT-FAMILY: 'Courier New'">But I didn�t mean to use business
delegate with the business object. since the business object (as you see from
the data access object (DAO)) is the data client. It is the object that
requires access to the data source to obtain and store data. (some of my words
from the book too). <o:p></o:p></SPAN></TT></P>
<P><BR><BR></P><BR><BR><BR>
<DIV>Ashraf Galal <BR>(416)804-8359</DIV>&gt;From: Chad Woolley <LISTS
@(protected)>&gt;Reply-To: An interest list for Sun Java Center J2EE
Pattern Catalog <J2EEPATTERNS-INTEREST@(protected)>&gt;To: J2EEPATTERNS
-INTEREST@(protected) &gt;Subject: Re: What is a "Data Object"? &gt;Date: Fri,
2 Jan 2004 04:15:19 -0700 &gt; &gt;Ashraf, &gt; &gt;First, please ignore my
previous message where I said you only &gt;posted the UML &gt;diagram. Your
text came across as an attachment and I couldn't read &gt;it in my &gt;digest
(which is in some unreadable mime format) or on sun's site. &gt;Plus, there &gt
;may be duplicates, because when I tried to post from the web form, &gt;the page
hung &gt;but the post still went through. That must have been what happened &gt
;to you too. &gt; This isn't a very impressive site for sun, they should just do
it &gt;like Apache's. &gt; &gt;Anyway, thanks for your response. I've got some
comments and &gt;questions, which I &gt;included inline below. &
gt; &gt;ashraf galal wrote: &gt; &gt;&gt;Chad; &gt;&gt; &gt;&gt;It is the
implementation of the business object pattern. &gt;&gt; &gt;&gt;Term: Business
Object: &gt;&gt; &gt;&gt;An object that implements business logic and/or
business data. &gt;&gt; &gt;&gt;Business data and business logic are
implemented in coarse-grained &gt;&gt;objects called business objects. &gt;&gt;
&gt;&gt;In J2EE, business objects are implemented as session or entity &gt;&gt
;beans. &gt;&gt; &gt;&gt;In some cases, a business object could be an arbitrary
java object &gt;&gt;that provides some services. &gt;&gt;See attached document
for class and sequence diagrams &gt;&gt; &gt;&gt;I do think that these diagrams
must answer most of your questions. &gt;&gt; &gt;&gt;We might implement the
business object using the composite entity &gt;&gt;pattern (you are right) or
DAO or other different implementation. &gt; &gt;This code example is in the
"Business Object" chapter, and the UML &gt;diagram you &gt;attached
 is from the chapter. I would think they would call it &gt;"Business &gt
;Object" in the code sample if it is an occurence of that pattern. &gt;In other
&gt;places in the book, if a pattern uses itself "recursively", it uses &gt;the
same name. &gt; &gt;Maybe that is the case, though. Maybe it is just a "simple"
&gt;business object &gt;that doesn't have much logic in it. It still doesn't
make sense to &gt;call it &gt;something different, though. &gt; &gt; &gt;&gt
;Regarding your question �Can the Presentation Tier directly &gt;&gt;instantiate
and use "Data Objects"? ? &gt;&gt; &gt;&gt;We always use the business delegate
pattern to decouple the tier &gt;&gt;and hide the implementation details. It is
better not to use it &gt;&gt;directly from client tier (my opinion). &gt; &gt
;Now you lost me. How is this related to the Business Delegate &gt;pattern? if
it &gt;was used on the client, it would probably be passed through a &gt
;Business Delegate, &gt;but that doesn't tell me anythin
g more about what a "Data Object" is &gt;or how it &gt;is used. &gt; &gt
;Thanks for your response! &gt; &gt;Chad &gt; &gt;==============================
====================================== &gt;Companion Site: http://www
.corej2eepatterns.com &gt;J2EE BluePrints: http://java.sun.com/blueprints
/corej2eepatterns &gt;List Archive: &gt;http://archives.java.sun.com/archives
/j2eepatterns-interest.html &gt;Unsubscribing: email "signoff J2EEPATTERNS
-INTEREST" to &gt;listserv@(protected) </div><br clear=all><hr>Tired of spam?
Get  <a href="http://g.msn.com/8HMAENCA/2734??PS=">advanced junk mail
protection</a> with MSN 8.</html>
====================================================================
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@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.