All Known Implementing Classes:
DBAppUserDao

public interface IAppUserDAO
Interface for accessing and managing AppUser data in the database.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addUser(AppUser appUser)
    Adds a new user to the database.
    void
    Deletes a user from the database.
    Retrieves a list of all users from the database.
    getUser(int userId)
    Retrieves a user from the database based on the provided user ID.
    void
    Updates the information of an existing user in the database.
  • Method Details

    • addUser

      void addUser(AppUser appUser)
      Adds a new user to the database.
      Parameters:
      appUser - The AppUser object representing the user to be added.
    • updateUser

      void updateUser(AppUser appUser)
      Updates the information of an existing user in the database.
      Parameters:
      appUser - The AppUser object representing the user with updated information.
    • deleteUser

      void deleteUser(AppUser appUser)
      Deletes a user from the database.
      Parameters:
      appUser - The AppUser object representing the user to be deleted.
    • getUser

      AppUser getUser(int userId)
      Retrieves a user from the database based on the provided user ID.
      Parameters:
      userId - The ID of the user to retrieve.
      Returns:
      The AppUser object representing the retrieved user, or null if not found.
    • getAllUsers

      List<AppUser> getAllUsers()
      Retrieves a list of all users from the database.
      Returns:
      A List of AppUser objects representing all users in the database.