|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
org.appfuse.persistence.hibernate.UserDAOHibernate
This class interacts with Hibernate's to save and retrieve User objects.
| Field Summary |
| Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
| Constructor Summary | |
UserDAOHibernate()
|
|
| Method Summary | |
User |
getUser(String username)
Get user by username. |
UserCookie |
getUserCookie(String cookieId)
Gets a userCookie object from the database, based on cookieId |
List |
getUsers(User user)
Gets a list of users based on parameters passed in. |
void |
removeUser(User user)
Removes a user from the database by id |
void |
removeUserCookies(String username)
Removes all cookies for a specified username |
User |
saveUser(User user)
Saves a user's information |
void |
saveUserCookie(UserCookie cookie)
Saves a userCookie object to the database |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserDAOHibernate()
| Method Detail |
public User getUser(String username)
throws DAOException
getUser in interface UserDAOusername - the user's username
DAOException - if anything goes wrong
public List getUsers(User user)
throws DAOException
UserDAO
getUsers in interface UserDAODAOExceptionUserDAO.getUsers(org.appfuse.model.User)
public User saveUser(User user)
throws DAOException
UserDAO
saveUser in interface UserDAOuser - the object to be saved
DAOExceptionUserDAO.saveUser(org.appfuse.model.User)
public void removeUser(User user)
throws DAOException
UserDAO
removeUser in interface UserDAOuser - the object to be removed
DAOExceptionUserDAO.removeUser(org.appfuse.model.User)
public UserCookie getUserCookie(String cookieId)
throws DAOException
UserDAO
getUserCookie in interface UserDAOcookieId -
DAOExceptionUserDAO.getUserCookie(java.lang.String)public void removeUserCookies(String username)
UserDAO
removeUserCookies in interface UserDAOusername - UserDAO.removeUserCookies(java.lang.String)
public void saveUserCookie(UserCookie cookie)
throws DAOException
UserDAO
saveUserCookie in interface UserDAOcookie -
DAOExceptionUserDAO.saveUserCookie(org.appfuse.model.UserCookie)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||