edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3PITRoleSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITRoleSetDAO
- All Implemented Interfaces:
- GrouperDAO, PITRoleSetDAO
public class Hib3PITRoleSetDAO
- extends Hib3DAO
- implements PITRoleSetDAO
- Author:
- shilen
$Id$
Hib3PITRoleSetDAO
public Hib3PITRoleSetDAO()
saveOrUpdate
public void saveOrUpdate(PITRoleSet pitRoleSet)
- Description copied from interface:
PITRoleSetDAO
- insert or update
- Specified by:
saveOrUpdate
in interface PITRoleSetDAO
- See Also:
PITRoleSetDAO.saveOrUpdate(edu.internet2.middleware.grouper.pit.PITRoleSet)
saveOrUpdate
public void saveOrUpdate(Set<PITRoleSet> pitRoleSets)
- Description copied from interface:
PITRoleSetDAO
- insert or update
- Specified by:
saveOrUpdate
in interface PITRoleSetDAO
- See Also:
PITRoleSetDAO.saveOrUpdate(java.util.Set)
delete
public void delete(PITRoleSet pitRoleSet)
- Description copied from interface:
PITRoleSetDAO
- delete
- Specified by:
delete
in interface PITRoleSetDAO
- See Also:
PITRoleSetDAO.delete(edu.internet2.middleware.grouper.pit.PITRoleSet)
reset
public static void reset(HibernateSession hibernateSession)
- reset
- Parameters:
hibernateSession
-
findBySourceIdActive
public PITRoleSet findBySourceIdActive(String id,
boolean exceptionIfNotFound)
- Specified by:
findBySourceIdActive
in interface PITRoleSetDAO
- Returns:
- PITRoleSet
- See Also:
PITRoleSetDAO.findBySourceIdActive(java.lang.String, boolean)
findBySourceIdUnique
public PITRoleSet findBySourceIdUnique(String id,
boolean exceptionIfNotFound)
- Specified by:
findBySourceIdUnique
in interface PITRoleSetDAO
- Returns:
- PITRoleSet
- See Also:
PITRoleSetDAO.findBySourceIdUnique(java.lang.String, boolean)
findById
public PITRoleSet findById(String id,
boolean exceptionIfNotFound)
- Specified by:
findById
in interface PITRoleSetDAO
- Returns:
- PITRoleSet
- See Also:
PITRoleSetDAO.findById(java.lang.String, boolean)
deleteInactiveRecords
public void deleteInactiveRecords(Timestamp time)
- Description copied from interface:
PITRoleSetDAO
- Delete records that ended before the given date.
- Specified by:
deleteInactiveRecords
in interface PITRoleSetDAO
- See Also:
PITRoleSetDAO.deleteInactiveRecords(java.sql.Timestamp)
findImmediateChildren
public Set<PITRoleSet> findImmediateChildren(PITRoleSet pitRoleSet)
- Specified by:
findImmediateChildren
in interface PITRoleSetDAO
- Returns:
- pit role sets
- See Also:
PITRoleSetDAO.findImmediateChildren(edu.internet2.middleware.grouper.pit.PITRoleSet)
deleteSelfByPITRoleId
public void deleteSelfByPITRoleId(String id)
- Specified by:
deleteSelfByPITRoleId
in interface PITRoleSetDAO
- See Also:
edu.internet2.middleware.grouper.internal.dao.PITRoleSetDAO#findAllByPITOwnerAndPITMemberAndPITField(java.lang.String)
findAllSelfPITRoleSetsByPITRoleId
public Set<PITRoleSet> findAllSelfPITRoleSetsByPITRoleId(String id)
- Specified by:
findAllSelfPITRoleSetsByPITRoleId
in interface PITRoleSetDAO
- Returns:
- pit role sets
- See Also:
PITRoleSetDAO.findAllSelfPITRoleSetsByPITRoleId(java.lang.String)
findByThenHasPITRoleId
public Set<PITRoleSet> findByThenHasPITRoleId(String id)
- Specified by:
findByThenHasPITRoleId
in interface PITRoleSetDAO
- Returns:
- pit role sets
- See Also:
PITRoleSetDAO.findByThenHasPITRoleId(java.lang.String)
findMissingActivePITRoleSets
public Set<RoleSet> findMissingActivePITRoleSets()
- Specified by:
findMissingActivePITRoleSets
in interface PITRoleSetDAO
- Returns:
- active role sets that are missing in point in time
- See Also:
PITRoleSetDAO.findMissingActivePITRoleSets()
findMissingInactivePITRoleSets
public Set<PITRoleSet> findMissingInactivePITRoleSets()
- Specified by:
findMissingInactivePITRoleSets
in interface PITRoleSetDAO
- Returns:
- active point in time role sets that should be inactive
- See Also:
PITRoleSetDAO.findMissingInactivePITRoleSets()
findActiveDuplicates
public Set<String> findActiveDuplicates()
- Specified by:
findActiveDuplicates
in interface PITRoleSetDAO
- Returns:
- source ids of records that have duplicate active entries in PIT
- See Also:
PITRoleSetDAO.findActiveDuplicates()
findBySourceId
public Set<PITRoleSet> findBySourceId(String id,
boolean exceptionIfNotFound)
- Specified by:
findBySourceId
in interface PITRoleSetDAO
- Returns:
- set of PITRoleSet
- See Also:
PITRoleSetDAO.findBySourceId(java.lang.String, boolean)
delete
public void delete(String id)
- Description copied from interface:
PITRoleSetDAO
- Delete (won't run pre and post delete methods)
- Specified by:
delete
in interface PITRoleSetDAO
- See Also:
PITRoleSetDAO.delete(java.lang.String)