This project will enable us to perform create read update and delete (CRUD) operation on/of a manager.
Pre-conditions :
Two default managers should always be present for testing purpose.
Design :
Step 1: Create one class : Manager
Create one class : ManagerAttributes :managerIdnameagesalarygenderyearOfExpprojects[]phonenumbers[]Methods : GettersandSetters , Constructors (bothParameterizedandnoargs)
Step 2: Class for virtual database : VirtualDatabaseUtil
Class for virtual database : VirtualDatabaseUtil Attributes: static managerTable[] static block to initialize managerTable with some manager objects Methods: Only static getter method
Step 3: Class to interact with virtualDB ManagerDAOImpl
Class to interact with virtualDB ManagerDAOImpl Methods:+ basic CRUD (save,update,findById,findAll,delete)
Step 4: Class for bussiness logic : ManagerServiceImpl
Class for bussiness logic : ManagerServiceImpl Methods:+ basic CRUD (save,update,findById,findAll,delete)+getAllProjectsStartingWithEventById() ex: all project starting with"Event"of manager "id : 2"
Step 6: Class for all screen messages and error : ManagerContants
Class for all screen messages and error : ManagerContantsStatic Attributes:Manager IdManager NameAgeSalarySenderYears Of ExpProjects AccomplishedPhone Numbers
Step 7: Class for Testing : ManagerTest
Class for Testing : ManagerTestMethod:+main()+displayMenu()