  | 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
|
|
|
  | | | DAO - question about | DAO - question about 2005-05-12 - By ashraf galal
Back <html><div style='background-color:'><P>When the storage is not subject to change (I think this is 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. < /P> <P>I think you need to use Factory method or Abstract factory method.</P> <P> </P> <P> </P> <P> </P> <P><BR> </P><BR><BR><BR> <DIV>Ashraf Galal <BR>(416)804-8359</DIV><BR><BR><BR>>From: Maya menon < ;maya_java@(protected)><BR>>Reply-To: An interest list for Sun Java Center J2EE Pattern Catalog <J2EEPATTERNS-INTEREST@(protected)><BR>>To: J2EEPATTERNS-INTEREST@(protected)<BR>>Subject: DAO - question about<BR>> ;Date: Thu, 12 May 2005 09:15:31 -0700<BR>><BR>>Hi,<BR>><BR>>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>>I was reading in Core J2Ee patterns :<BR>><BR>>The DAO pattern can be made highly flexible by adopting the Abstract Factory [GoF] and the Factory Method [GoF] patterns.<BR>><BR>>Is this a true statement ?<BR >>My datasource is Oracle and I will be having couple of DAO classes specific to actions.<BR>><BR>>Please advice,<BR>><BR>><BR>><BR>>-- ---- ---- ---- ---- ---- -----<BR>> ;Yahoo! Mail Mobile<BR>> Take Yahoo! Mail with you! Check email on your mobile phone.<BR>><BR>>================================================== ==================<BR>>Companion Site: http://www.corej2eepatterns.com<BR>> ;J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns<BR>>List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html<BR> >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)
|
|
 |