Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
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
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
DAO - question about

DAO - question about

2005-05-12       - By ashraf galal

 Back
Reply:     1     2     3     4     5  

<html><div style='background-color:'><P>When the storage is not subject to
change (I think this is&nbsp;your case) from one implementation to another,
then you can implement it using the factory method why? to produce a number of
DAOs need by your application. </P>
<P>If your underlying storage is subject to change from one implementation to
another( I think this is not your case), you can implement it using the
Abstract factory pattern.</P>
<P>The Abstract Factory pattern can build on the use of factory method
implementation.</P>
<P>This is why they saidd that in the J2EE design pattern you mentioned.&nbsp;<
/P>
<P>I think you need to use Factory method or Abstract factory method.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><BR>&nbsp;</P><BR><BR><BR>
<DIV>Ashraf Galal <BR>(416)804-8359</DIV><BR><BR><BR>&gt;From: Maya menon &lt
;maya_java@(protected)&gt;<BR>&gt;Reply-To: An interest list for Sun Java Center
J2EE Pattern Catalog &lt;J2EEPATTERNS-INTEREST@(protected)&gt;<BR>&gt;To:
J2EEPATTERNS-INTEREST@(protected)<BR>&gt;Subject: DAO - question about<BR>&gt
;Date: Thu, 12 May 2005 09:15:31 -0700<BR>&gt;<BR>&gt;Hi,<BR>&gt;<BR>&gt;I am
thinking about using DAO for our project for doing database calls and
transactions. While we implement this pattern , shall I need to use factory
pattern ?<BR>&gt;I was reading in Core J2Ee patterns :<BR>&gt;<BR>&gt;The DAO
pattern can be made highly flexible by adopting the Abstract Factory [GoF] and
the Factory Method [GoF] patterns.<BR>&gt;<BR>&gt;Is this a true statement ?<BR
>&gt;My datasource is Oracle and I will be having couple of DAO classes specific
to actions.<BR>&gt;<BR>&gt;Please
advice,<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;-- ---- ---- ---- ---- ---- -----<BR>&gt
;Yahoo! Mail Mobile<BR>&gt; Take Yahoo! Mail with you! Check email on your
mobile phone.<BR>&gt;<BR>&gt;==================================================
==================<BR>&gt;Companion Site: http://www.corej2eepatterns.com<BR>&gt
;J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns<BR>&gt;List
Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html<BR>
&gt;Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
.com<BR></div></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.