I am new to this concepts data access layer and data access objects.
I wants to the difference between the data access layer and data access object.Please guide me.
I am new to this concepts data access layer and data access objects.
I wants to the difference between the data access layer and data access object.Please guide me.
Data access object is the dao pattern where the data interaction logic is wrapped (encapsulated) inside the dao objects and the behavior is exposed through dao interfaces. Data access layers is more generic and refers to whole set of infrastructure helping to access the database access. Data access layer may contain dao, driver classes and other data access details.
DAO/Data Access Objects is the name of a Microsoft database library from 1992. Originally used for accessing Jet databases (MS Access), it later added ODBC support
DAL/Data Access Layer is the generic term for the code that sits between the database library and the rest of the application. Around 2001 Sun started calling the DAL "Data Access Objects" because... well I have no idea.
ref:
http://en.wikipedia.org/wiki/Data_Access_Objects
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html