The Data Access Object (DAO) layer
The Student Management Portal (SMP) has packages under the DAO layer, namely the org.packt.academic.student.portal.dao
and
org.packt.academic.student.portal.dao.impl
. To maintain loosely-coupled architecture, it would be best to first write the interface for all the DAO classes before their implementation. All of the four implementations follow the same interface blueprint. For instance, the ApplicationDao
, which contains all database operations for the student application module, has the following DAO interface:
public interface ApplicationDao { public void setPendingApp(Application application); public List<Application> getPendingApp(); public Application getPending(Integer regId); public void setRegister(Application ...
Get Spring MVC Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.