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 application); public void deletePending(Application application); public void setStudentAccount(Application application); }
When it comes to the...