Maya, you should try http://www.codefutures.com/products/firestorm/. They have an evaluation
version. Firestorm DAO generates the classes needed for diferent implementations. If you or your
company cannot afford the price of the professional version, you can at least try the evaluation
version to see how they implement a DAO.
Once you have the code, you can use Spring's dependency injection to get rid of the factorys.
It is really easy to adapt the generated code to use iBatis or Hibernate, plus Spring also offers
support for this O-R mappers.
--- Maya menon <maya_java@(protected)¿½:
> Hi,
>
> 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 ?
> I was reading in Core J2Ee patterns :
>
> The DAO pattern can be made highly flexible by adopting the Abstract Factory [GoF] and the
> Factory Method [GoF] patterns.
>
> Is this a true statement ?
> My datasource is Oracle and I will be having couple of DAO classes specific to actions.
>
> Please advice,
>
>
>
> ---------------------------------
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
>
> ====================================================================
> 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)
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
====================================================================
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)