Package main.controller.account.user
Class UserUpdater
java.lang.Object
main.controller.account.user.UserUpdater
The UserUpdater class provides a utility for updating users in the database.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidupdateCoordinator(Coordinator coordinator) Updates the specified coordinator in the database.private static voidupdateStudent(Student student) Updates the specified user in the database.private static voidupdateSupervisor(Supervisor supervisor) Updates the specified supervisor in the database.static voidupdateUser(User user) Updates the specified user in the database.
- 
Constructor Details- 
UserUpdaterpublic UserUpdater()
 
- 
- 
Method Details- 
updateStudentUpdates the specified user in the database.- Parameters:
- student- the user to be updated
- Throws:
- ModelNotFoundException- if the user is not found in the database
 
- 
updateSupervisorUpdates the specified supervisor in the database.- Parameters:
- supervisor- the supervisor to be updated
- Throws:
- ModelNotFoundException- if the supervisor is not found in the database
 
- 
updateCoordinatorUpdates the specified coordinator in the database.- Parameters:
- coordinator- the coordinator to be updated
- Throws:
- ModelNotFoundException- if the coordinator is not found in the database
 
- 
updateUserUpdates the specified user in the database.- Parameters:
- user- the user to be updated
- Throws:
- ModelNotFoundException- if the user is not found in the database
 
 
-