PDA

View Full Version : about DAO in java 2011



saneha
04-26-2011, 10:48 PM
dear sir AOA, in your lecture#33 you give us some demonstration about sequence diagram in which you tell us when we use a form built in java and want to connect with data base then between form and data base DAO is used, which is use for built connection between form and database. sir it is clear. my question is that if we built our application in php and we want to connect with data base then which thing is use between form and database as DAO is use in java applications. please sir reply me.

Vuhelper
04-26-2011, 10:49 PM
DAO (Data Access Object) are implementation of the Data Layers. DAO classes are practical implementation of the Layered pattern of development.
The layered model can be implemented in any language. You can make DAO class in PHP.

But this layered approach is more suited for J2EE applications. PHP is for small applications and often this (DAO) approach is not used.