Package ejava.projects.edmv.blimpl
Class EDmvMgmtCommand
- java.lang.Object
-
- ejava.projects.edmv.blimpl.EDmvIngestCommand
-
- ejava.projects.edmv.blimpl.EDmvMgmtCommand
-
public class EDmvMgmtCommand extends EDmvIngestCommand
This class provides an example wrapper of the business logic to show how the business logic cab be wrapped in a main to be run outside of JUnit.
-
-
Constructor Summary
Constructors Constructor Description EDmvMgmtCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static EntityManagerFactorygetEMF()private static voidinvoke(PersonMgmt personMgmt, VehicleMgmt vehicleMgmt)private static voidlistPeople(PersonMgmt personMgmt)private static voidlistRegistrations(VehicleMgmt vehicleMgmt)static voidmain(String[] args)
-
-
-
Field Detail
-
command
private static String command
-
indexStr
private static String indexStr
-
countStr
private static String countStr
-
out
private static PrintStream out
-
-
Method Detail
-
getEMF
private static EntityManagerFactory getEMF()
-
invoke
private static void invoke(PersonMgmt personMgmt, VehicleMgmt vehicleMgmt) throws Exception
- Throws:
Exception
-
listPeople
private static void listPeople(PersonMgmt personMgmt) throws Exception
- Throws:
Exception
-
listRegistrations
private static void listRegistrations(VehicleMgmt vehicleMgmt) throws Exception
- Throws:
Exception
-
main
public static void main(String[] args)
-
-