public interface UserDao
| Modifier and Type | Method and Description |
|---|---|
void |
add(User user)
Adds the user on database
|
boolean |
containsUserWithLogin(String login)
Checks if there is already an user with given login.
|
User |
find(String login)
Finds an user by login
|
User |
find(String login,
String password)
Finds an user by login and password.
|
List<User> |
listAll()
Retrieves all users from database.
|
void |
refresh(User user)
Synchronize the user data with the database.
|
void |
update(User user)
Update the user on database.
|
User find(String login, String password)
login - password - HibernateException, - if there are more than one userUser find(String login)
login - HibernateException, - if there are more than one uservoid add(User user)
user - void refresh(User user)
user - void update(User user)
user - boolean containsUserWithLogin(String login)
login - Copyright © 2014 Caelum. All Rights Reserved.