org.appfuse.dao.jpa
Class RoleDaoJpa
java.lang.Object
org.appfuse.dao.jpa.GenericDaoJpa<Role,Long>
org.appfuse.dao.jpa.RoleDaoJpa
- All Implemented Interfaces:
- GenericDao<Role,Long>, RoleDao
@Repository
public class RoleDaoJpa
- extends GenericDaoJpa<Role,Long>
- implements RoleDao
This class interacts with Spring's HibernateTemplate to save/delete and
retrieve Role objects.
- Author:
- Bryan Noll
|
Constructor Summary |
RoleDaoJpa()
Constructor to create a Generics-based version using Role as the entity |
| Methods inherited from class org.appfuse.dao.jpa.GenericDaoJpa |
exists, get, getAll, getAllDistinct, getEntityManager, reindex, reindexAll, remove, remove, save, search |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleDaoJpa
public RoleDaoJpa()
- Constructor to create a Generics-based version using Role as the entity
getRoleByName
public Role getRoleByName(String rolename)
- Gets role information based on rolename
- Specified by:
getRoleByName in interface RoleDao
- Parameters:
rolename - the rolename
- Returns:
- populated role object
removeRole
public void removeRole(String rolename)
- Removes a role from the database by name
- Specified by:
removeRole in interface RoleDao
- Parameters:
rolename - the role's rolename
Copyright © 2003-2012. All Rights Reserved.