Class UserDAO

java.lang.Object
com.wellnessapp.model.UserDAO
All Implemented Interfaces:
IUserDAO

public class UserDAO extends Object implements IUserDAO
  • Constructor Details

    • UserDAO

      public UserDAO()
  • Method Details

    • insert

      public void insert(User user)
      Description copied from interface: IUserDAO
      Adds a new user to the database
      Specified by:
      insert in interface IUserDAO
      Parameters:
      user - The user to add
    • delete

      public void delete(User user)
      Description copied from interface: IUserDAO
      Deletes a user from the database.
      Specified by:
      delete in interface IUserDAO
      Parameters:
      user - The user to delete
    • getAll

      public List<User> getAll()
      Description copied from interface: IUserDAO
      Retrieves all users from the database.
      Specified by:
      getAll in interface IUserDAO
      Returns:
      A list of all users in the database
    • close

      public void close()
    • authenticateUser

      public boolean authenticateUser(User user)