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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
updateCoordinator
(Coordinator coordinator) Updates the specified coordinator in the database.private static void
updateStudent
(Student student) Updates the specified user in the database.private static void
updateSupervisor
(Supervisor supervisor) Updates the specified supervisor in the database.static void
updateUser
(User user) Updates the specified user in the database.
-
Constructor Details
-
UserUpdater
public UserUpdater()
-
-
Method Details
-
updateStudent
Updates the specified user in the database.- Parameters:
student
- the user to be updated- Throws:
ModelNotFoundException
- if the user is not found in the database
-
updateSupervisor
Updates the specified supervisor in the database.- Parameters:
supervisor
- the supervisor to be updated- Throws:
ModelNotFoundException
- if the supervisor is not found in the database
-
updateCoordinator
Updates the specified coordinator in the database.- Parameters:
coordinator
- the coordinator to be updated- Throws:
ModelNotFoundException
- if the coordinator is not found in the database
-
updateUser
Updates the specified user in the database.- Parameters:
user
- the user to be updated- Throws:
ModelNotFoundException
- if the user is not found in the database
-