@Repository public class RoleDaoHibernate extends GenericDaoHibernate<Role,Long> implements RoleDao
log| Constructor and Description |
|---|
RoleDaoHibernate()
Constructor to create a Generics-based version using Role as the entity
|
| Modifier and Type | Method and Description |
|---|---|
Role |
getRoleByName(String rolename)
Gets role information based on rolename
|
void |
removeRole(String rolename)
Removes a role from the database by name
|
exists, findByNamedQuery, get, getAll, getAllDistinct, getSession, getSessionFactory, reindex, reindexAll, remove, remove, save, search, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, findByNamedQuery, get, getAll, getAllDistinct, reindex, reindexAll, remove, remove, save, searchpublic RoleDaoHibernate()
public Role getRoleByName(String rolename)
getRoleByName in interface RoleDaorolename - the rolenamepublic void removeRole(String rolename)
removeRole in interface RoleDaorolename - the role's rolenameCopyright © 2003–2013. All rights reserved.