Package ejava.projects.edmv.blimpl
Class EDmvMgmtImpl
- java.lang.Object
-
- ejava.projects.edmv.blimpl.EDmvMgmtImpl
-
- All Implemented Interfaces:
PersonMgmt,VehicleMgmt
public class EDmvMgmtImpl extends Object implements PersonMgmt, VehicleMgmt
This class provides a simple example of both the person and registration management implementation. They were combined into a single implementation class here for simplicity. They could easily be broken out into separate classes as their implementation gets more complex.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Loggerlogprivate PersonDAOpersonDAOprivate VehicleDAOvehicleDAO
-
Constructor Summary
Constructors Constructor Description EDmvMgmtImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Person>getPeople(int index, int count)List<VehicleRegistration>getRegistrations(int index, int count)voidsetPersonDAO(PersonDAO personDAO)voidsetVehicleDAO(VehicleDAO vehicleDAO)
-
-
-
Field Detail
-
log
private org.slf4j.Logger log
-
personDAO
private PersonDAO personDAO
-
vehicleDAO
private VehicleDAO vehicleDAO
-
-
Method Detail
-
setPersonDAO
public void setPersonDAO(PersonDAO personDAO)
-
setVehicleDAO
public void setVehicleDAO(VehicleDAO vehicleDAO)
-
getPeople
public List<Person> getPeople(int index, int count) throws EDmvException
- Specified by:
getPeoplein interfacePersonMgmt- Throws:
EDmvException
-
getRegistrations
public List<VehicleRegistration> getRegistrations(int index, int count) throws EDmvException
- Specified by:
getRegistrationsin interfaceVehicleMgmt- Throws:
EDmvException
-
-