Interface IAppUserDAO
- All Known Implementing Classes:
DBAppUserDao
public interface IAppUserDAO
Interface for accessing and managing AppUser data in the database.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new user to the database.void
deleteUser
(AppUser appUser) 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
updateUser
(AppUser appUser) Updates the information of an existing user in the database.
-
Method Details
-
addUser
Adds a new user to the database.- Parameters:
appUser
- The AppUser object representing the user to be added.
-
updateUser
Updates the information of an existing user in the database.- Parameters:
appUser
- The AppUser object representing the user with updated information.
-
deleteUser
Deletes a user from the database.- Parameters:
appUser
- The AppUser object representing the user to be deleted.
-
getUser
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
Retrieves a list of all users from the database.- Returns:
- A List of AppUser objects representing all users in the database.
-