This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
hi, i'm developing a component to customise a database for a website, the following functions/methods may included :
1) DBconnection - connect db 2) getDbData - get data from db and generate table 3) displayDBdata - display table to webpage 4) setPrimarykey - set primary key for certain column in specify table 5) unsetPrimary - unset primary key 5) setIndexKey - set index key for certain column in specify table 6) unsetIndexkey - unset index 7) renamecolumn - rename db table's column name 8) renametable - rename specify table 9) addColumn - add column to table 10)deleteColumn - delete column in table
let assume that are basic functions which a component do, can someone pls suggest a suitable design pattern in my case ? thank you very much for your time and suggestion [ November 30, 2004: Message edited by: Alvin chew ]
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
Originally posted by Alvin chew: i running on time on current project ..and i totally new to DAO, if that is the case, what is the best book to get ?
If you are running short of time, you should probably be more concerned about getting the functionality right in the application rather than worrying about which design pattern to use. In most cases, you will end up with something close to a good design pattern. You can always refactor the code once you are sure that your program does what you want it to do (assuming you have good tests, of course).
The general rule is "Make it work, Make it right, Make it fast".