Java Mailing List Archive

http://www.junlu.com/

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

Re: DAO pattern

Harkness, David

2004-11-23


Darshan penned

> Is there any impact if we keep the
> methods as static in a web application?

You're simply setting yourself up to kick yourself later for all of the
reasons Tareq pointed out. What would that buy you? You'd save creating
an interface which you can do easily from the implementation or I'm sure
Eclipse has an "interfacify" refactoring.

And yes, I'm hooked on Spring and unit testing with mock objects -- and
it's been only a few weeks! :D

--
David Harkness                     Sony Pictures Digital
Sr. Software Engineer  310.482.4756   dharkness@(protected)

A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.

-- Mahatma Ghandi

====================================================================
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.