edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3RoleDAO

java.lang.Object
  extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
      extended by 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

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3RoleDAO()
           
 
Method Summary
 Role findById(String id, boolean exceptionIfNotFound)
           
 Role findByName(String name, boolean exceptionIfNotFound)
          find an attribute def name by name
 void saveOrUpdate(Role role)
          save or update
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3RoleDAO

public Hib3RoleDAO()
Method Detail

findById

public Role findById(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(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