org.appfuse.dao.hibernate
Class RoleDaoHibernate
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.appfuse.dao.hibernate.BaseDaoHibernate
org.appfuse.dao.hibernate.RoleDaoHibernate
- All Implemented Interfaces:
- Dao, RoleDao, InitializingBean
public class RoleDaoHibernate
- extends BaseDaoHibernate
- implements RoleDao
This class interacts with Spring's HibernateTemplate to save/delete and
retrieve Role objects.
View Source
- Author:
- Dan Kibler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleDaoHibernate
public RoleDaoHibernate()
getRoles
public List getRoles(Role role)
- Description copied from interface:
RoleDao
- Gets a list of roles based on parameters passed in.
- Specified by:
getRoles
in interface RoleDao
- Returns:
- List populated list of roles
getRole
public Role getRole(Long roleId)
getRoleByName
public Role getRoleByName(String rolename)
- Description copied from interface:
RoleDao
- Gets role information based on rolename
- Specified by:
getRoleByName
in interface RoleDao
- Parameters:
rolename
- the rolename
- Returns:
- role populated role object
saveRole
public void saveRole(Role role)
- Description copied from interface:
RoleDao
- Saves a role's information
- Specified by:
saveRole
in interface RoleDao
- Parameters:
role
- the object to be saved
removeRole
public void removeRole(String rolename)
- Description copied from interface:
RoleDao
- Removes a role from the database by name
- Specified by:
removeRole
in interface RoleDao
- Parameters:
rolename
- the role's rolename
Copyright � 2002-2006