What is the difference between DAO and DAL?

 

What is the difference between DAO and DAL?

 

The Data Access Layer (DAL) is the layer of a system that exists between the business logic layer and the persistence / storage layer.

A DAL might be a single class, or it might be composed of multiple Data Access Objects (DAOs).

It may have a facade over the top for the business layer to talk to, hiding the complexity of the data access logic.

It might be a third-party object-relational mapping tool (ORM) such as Hibernate.

DAL is an architectural term, DAOs are a design detail.

 

posted @ 2016-01-04 15:01  ChuckLu  阅读(452)  评论(0编辑  收藏  举报