|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UsersDAO
Data Access Object (DAO) for accessing model data about registered users and their profile information.
$Id: UsersDAO.java 464373 2006-10-16 04:21:54Z rahul $
| Method Summary | |
|---|---|
User |
createUser()
Create and return a User object that may be populated
and then passed to insertUser() for persistence. |
User |
findUser(int id)
Return the User for the corresponding user id, if any. |
User |
findUser(String username)
Return the User for the corresponding username, if any. |
void |
insertUser(User user)
Insert a newly created User into persistent storage. |
void |
updateUser(User user)
Update an existing User into persistent storage. |
| Method Detail |
|---|
User createUser()
Create and return a User object that may be populated
and then passed to insertUser() for persistence.
User findUser(int id)
Return the User for the corresponding user id, if any.
Otherwise, return null.
id - User id to look upUser findUser(String username)
Return the User for the corresponding username, if any.
Otherwise, return null.
username - Username to look upvoid insertUser(User user)
Insert a newly created User into persistent storage.
user - Created User to be persistedvoid updateUser(User user)
Update an existing User into persistent storage.
user - Updated User to be persisted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||