public interface UserDao
| Modifier and Type | Method and Description |
|---|---|
void |
createUser(User user)
Creates a new user.
|
void |
deleteUser(int userId)
Finds and removes the user from the persistence mechanism.
|
void |
deleteUser(String userName)
Finds and removes the user from the persistence mechanism.
|
int |
getUserCount()
Queries the persistence mechanism and returns the number of registries.
|
List<User> |
getUserList()
Requests a List of all registries from the persistence mechanism.
|
User |
lookupUser(int userId)
Looks up and retrieves a user from the persistence mechanism using the userId.
|
User |
lookupUser(String userName)
Looks up and retrieves a user from the persistence mechanism using the userName.
|
void |
updatePassword(User user)
Updates the User's Password
|
void |
updateUser(User user)
Saves changes made to an existing user.
|
User lookupUser(int userId)
userId - The id of the user we are trying to locate (will be unique for each user).User lookupUser(String userName)
userName - The userName of the user we are trying to locate (will be unique for each user).List<User> getUserList()
int getUserCount()
void deleteUser(int userId)
userId - The userId in the persistence mechanism.void deleteUser(String userName)
userName - The userName in the persistence mechanism.void createUser(User user)
user - The user to be created.void updateUser(User user)
user - The existing user with changes that needs to be saved.void updatePassword(User user)
user - The user to whose password we need to update.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.