Chris Scott said the following on 3/24/2006 7:13 PM:
> Instead of changing the type to 'any' for your argument for
> setNewsDAO, why don't you make a mock abstract class for your newDAO,
> and then have both your newsDAO and newsDAO_XML extend the same class.
> Then you can have that base abstract class be the type for your
> argument. A good thing to do with interfaces by the way, which of
> course ARE coming!
>
> -Chris
I ditto this as well.  I switched to always extending my DAOs and
Gateways with a base class specific to the entity the DAO/Gateway
represents last fall.  This was due to the fact that we use MySQL around
here, there is a possibility of making one of our apps support other DBs.

.Peter

P.s.  Rock on Team Fusion ;-)

-- 
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusion
http://blog.maestropublishing.com

Create boilerplate beans and transfer objects for ColdFusion!
Fire up a cup of Rooibos!
http://rooibos.maestropublishing.com/



Reply via email to