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.Logger
log
private PersonDAO
personDAO
private VehicleDAO
vehicleDAO
-
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)
void
setPersonDAO(PersonDAO personDAO)
void
setVehicleDAO(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:
getPeople
in interfacePersonMgmt
- Throws:
EDmvException
-
getRegistrations
public List<VehicleRegistration> getRegistrations(int index, int count) throws EDmvException
- Specified by:
getRegistrations
in interfaceVehicleMgmt
- Throws:
EDmvException
-
-