edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3RoleDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RoleDAO
- All Implemented Interfaces:
- GrouperDAO, RoleDAO
public class Hib3RoleDAO
- extends Hib3DAO
- implements RoleDAO
Data Access Object for role
- Version:
- $Id: Hib3RoleDAO.java,v 1.2 2009-10-02 05:57:58 mchyzer Exp $
- Author:
- mchyzer
Method Summary |
Role |
findById(java.lang.String id,
boolean exceptionIfNotFound)
|
Role |
findByName(java.lang.String name,
boolean exceptionIfNotFound)
find an attribute def name by name |
void |
saveOrUpdate(Role role)
save or update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hib3RoleDAO
public Hib3RoleDAO()
findById
public Role findById(java.lang.String id,
boolean exceptionIfNotFound)
- Specified by:
findById
in interface RoleDAO
- Parameters:
id
- exceptionIfNotFound
- retrieve by id
- Returns:
- role
saveOrUpdate
public void saveOrUpdate(Role role)
- save or update
- Specified by:
saveOrUpdate
in interface RoleDAO
- Parameters:
role
-
findByName
public Role findByName(java.lang.String name,
boolean exceptionIfNotFound)
throws GrouperDAOException,
RoleNotFoundException
- Description copied from interface:
RoleDAO
- find an attribute def name by name
- Specified by:
findByName
in interface RoleDAO
- Parameters:
name
- exceptionIfNotFound
-
- Returns:
- group
- Throws:
GrouperDAOException
RoleNotFoundException
GroupNotFoundException