org.ikasan.framework.security.dao
Class HibernateUserDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.ikasan.framework.security.dao.HibernateUserDao
All Implemented Interfaces:
UserDao, org.springframework.beans.factory.InitializingBean

public class HibernateUserDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements UserDao

Hibernate implementation of UserDao

Author:
Ikasan Development Team

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateUserDao()
           
 
Method Summary
 void delete(User user)
          Deletes a User from persistent storage
 User getUser(String username)
          Retrieves a specific User by name
 List<User> getUsers()
          Retrieves all Users known to the system
 void save(User user)
          Saves a User to persistent storage
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUserDao

public HibernateUserDao()
Method Detail

getUser

public User getUser(String username)
Description copied from interface: UserDao
Retrieves a specific User by name

Specified by:
getUser in interface UserDao
Returns:
specified User or null if does not exist

getUsers

public List<User> getUsers()
Description copied from interface: UserDao
Retrieves all Users known to the system

Specified by:
getUsers in interface UserDao
Returns:
List of all Users

save

public void save(User user)
Description copied from interface: UserDao
Saves a User to persistent storage

Specified by:
save in interface UserDao

delete

public void delete(User user)
Description copied from interface: UserDao
Deletes a User from persistent storage

Specified by:
delete in interface UserDao


Copyright © 2007-2012 Ikasan. All Rights Reserved.