@Repository public class RoleDaoJpa extends GenericDaoJpa<Role,Long> implements RoleDao
log, PERSISTENCE_UNIT_NAME| Constructor and Description |
|---|
RoleDaoJpa()
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, get, getAll, getAllDistinct, getEntityManager, reindex, reindexAll, remove, remove, save, searchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, get, getAll, getAllDistinct, reindex, reindexAll, remove, remove, save, searchpublic RoleDaoJpa()
public Role getRoleByName(String rolename)
getRoleByName in interface RoleDaorolename - the rolenamepublic void removeRole(String rolename)
removeRole in interface RoleDaorolename - the role's rolenameCopyright © 2003-2012. All Rights Reserved.