|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Data access object for users.
Method Summary | |
void |
addUser(User user)
Add given user to the persistent store. |
User |
getUser(java.lang.String userId)
Load the user with specified user id. |
java.util.Vector |
getUsers()
Load all user objects available in the persistent store. |
User |
getUserWithId(java.lang.Object id)
Load the user with specified persistent store id. |
void |
updateUser(User user)
Update the information of given user in the persistent store. |
Methods inherited from interface org.dartra.framework.dao.DataAccessObject |
close, getConnection, getDAOFactory, init |
Method Detail |
public void addUser(User user) throws DataAccessException
Add given user to the persistent store.
DataAccessException
- When there is a problem accessing the persistent store,
for instance when the given user is already present.public void updateUser(User user) throws DataAccessException
Update the information of given user in the persistent store. The specified user should already be present in the persistent store before calling this method.
DataAccessException
- When there is a problem accessing the persistent store.public User getUserWithId(java.lang.Object id) throws DataAccessException
Load the user with specified persistent store id.
DataAccessException
- When there is a problem accessing the persistent store.public User getUser(java.lang.String userId) throws DataAccessException
Load the user with specified user id.
DataAccessException
- When there is a problem accessing the persistent store.public java.util.Vector getUsers() throws DataAccessException
Load all user objects available in the persistent store.
DataAccessException
- When there is a problem accessing the persistent store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |