Class UserUpdater

java.lang.Object
main.controller.account.user.UserUpdater

public class UserUpdater extends Object
The UserUpdater class provides a utility for updating users in the database.
  • Constructor Details

    • UserUpdater

      public UserUpdater()
  • Method Details

    • updateStudent

      private static void updateStudent(Student student) throws ModelNotFoundException
      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

      private static void updateSupervisor(Supervisor supervisor) throws ModelNotFoundException
      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

      private static void updateCoordinator(Coordinator coordinator) throws ModelNotFoundException
      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

      public static void updateUser(User user) throws ModelNotFoundException
      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