Vince Hon<br /> <br />SCJP 1.4 | SCWCD | SCBCD <br /><a href="http://vincehon.homeip.net:8000/VJW" target="_blank" rel="nofollow">http://vincehon.homeip.net:8000/VJW</a>
Originally posted by Vince Hon:
1. Is my concept correct regarding the use of DAO ?
2. If I have other biz method that ONLY existed in MySQL instead of Oracle, how to implement it ?
3. Actually, I am designing a system with persistance storage, it is probably the data source will not be changed from the same biz logic. i.e. we always use MySQL storing the shopper info. However, we have to get other information from an Oracle database. In this case, there are 2 datasources serving 2 different business logic separately. Is the DAO pattern still apply there ? Could anyone suggest how to do this ?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
<a href="http://www-306.ibm.com/software/rational/bios/ambler.html" target="_blank" rel="nofollow">Scott W. Ambler</a><br />Practice Leader Agile Development, IBM Rational<br /> <br />Now available: <a href="http://www.ambysoft.com/books/refactoringDatabases.html" target="_blank" rel="nofollow">Refactoring Databases: Evolutionary Database Design</a>
Originally posted by Vince Hon:
My conern:
1. Is my concept correct regarding the use of DAO ?
2. If I have other biz method that ONLY existed in MySQL instead of Oracle, how to implement it ?
i.e;
//biz method only occur in MySQL
otherShopperMethod();
Do I need to add this in the abstract DAOFactory ? If yes, The OracleDAOFactory has to implement this even this method is always empty (this seems wrong).
3. Actually, I am designing a system with persistance storage, it is probably the data source will not be changed from the same biz logic. i.e. we always use MySQL storing the shopper info. However, we have to get other information from an Oracle database. In this case, there are 2 datasources serving 2 different business logic separately. Is the DAO pattern still apply there ? Could anyone suggest how to do this ?
Thanks
Moderator : <a href="http://groups.yahoo.com/group/OOAD_UML/" target="_blank" rel="nofollow">http://groups.yahoo.com/group/OOAD_UML/</a> <br />Home : <a href="http://www.zepho.com" target="_blank" rel="nofollow">http://www.zepho.com</a>
There is no "i" in denial. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|