|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appfuse.dao.jpa.GenericDaoJpa<Role,java.lang.Long>
org.appfuse.dao.jpa.RoleDaoJpa
@Repository public class RoleDaoJpa
This class interacts with Spring's HibernateTemplate to save/delete and retrieve Role objects.
| Field Summary |
|---|
| Fields inherited from class org.appfuse.dao.jpa.GenericDaoJpa |
|---|
log, PERSISTENCE_UNIT_NAME |
| Constructor Summary | |
|---|---|
RoleDaoJpa()
Constructor to create a Generics-based version using Role as the entity |
|
| Method Summary | |
|---|---|
Role |
getRoleByName(java.lang.String rolename)
Gets role information based on rolename |
void |
removeRole(java.lang.String rolename)
Removes a role from the database by name |
| Methods inherited from class org.appfuse.dao.jpa.GenericDaoJpa |
|---|
exists, get, getAll, getAllDistinct, getEntityManager, remove, save |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.appfuse.dao.GenericDao |
|---|
exists, get, getAll, getAllDistinct, remove, save |
| Constructor Detail |
|---|
public RoleDaoJpa()
| Method Detail |
|---|
public Role getRoleByName(java.lang.String rolename)
getRoleByName in interface RoleDaorolename - the rolename
public void removeRole(java.lang.String rolename)
removeRole in interface RoleDaorolename - the role's rolename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||