edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3PITGroupSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITGroupSetDAO
- All Implemented Interfaces:
- GrouperDAO, PITGroupSetDAO
public class Hib3PITGroupSetDAO
- extends Hib3DAO
- implements PITGroupSetDAO
- Author:
- shilen
$Id: Hib3PITGroupSetDAO.java 8035 2012-02-14 14:33:41Z shilen $
Method Summary |
void |
delete(PITGroupSet pitGroupSet)
delete |
void |
deleteInactiveRecords(java.sql.Timestamp time)
Delete records that ended before the given date. |
void |
deleteSelfByPITOwnerId(java.lang.String id)
|
PITGroupSet |
findActiveImmediateByPITOwnerAndPITMemberAndPITField(java.lang.String ownerId,
java.lang.String memberId,
java.lang.String fieldId)
|
PITGroupSet |
findActiveImmediateChildByParentAndMemberPITGroup(PITGroupSet parentPITGroupSet,
java.lang.String memberGroupId)
|
java.util.Set<PITGroupSet> |
findAllActiveByMemberPITGroup(java.lang.String groupId)
|
java.util.Set<PITGroupSet> |
findAllActiveByPITGroupOwnerAndPITField(java.lang.String groupId,
PITField field)
|
java.util.Set<PITGroupSet> |
findAllActiveChildren(PITGroupSet pitGroupSet)
|
java.util.Set<PITGroupSet> |
findAllByMemberPITGroup(java.lang.String groupId)
|
java.util.Set<PITGroupSet> |
findAllSelfPITGroupSetsByPITOwnerId(java.lang.String id)
|
PITGroupSet |
findById(java.lang.String id,
boolean exceptionIfNotFound)
|
PITGroupSet |
findBySourceIdActive(java.lang.String id,
boolean exceptionIfNotFound)
|
PITGroupSet |
findBySourceIdUnique(java.lang.String id,
boolean exceptionIfNotFound)
|
java.util.Set<PITGroupSet> |
findImmediateChildren(PITGroupSet groupSet)
|
java.util.Set<GroupSet> |
findMissingActivePITGroupSets()
|
java.util.Set<PITGroupSet> |
findMissingInactivePITGroupSets()
|
PITGroupSet |
findSelfPITGroupSet(java.lang.String ownerId,
java.lang.String fieldId,
boolean activeOnly)
|
void |
insertSelfPITGroupSetsByField(java.lang.String fieldId,
java.lang.Long startTime,
java.lang.String contextId)
|
void |
insertSelfPITGroupSetsByOwner(java.lang.String ownerId,
java.lang.Long startTime,
java.lang.String contextId,
boolean checkIfAlreadyExists)
|
static void |
reset(HibernateSession hibernateSession)
reset |
void |
saveOrUpdate(PITGroupSet pitGroupSet)
insert or update |
void |
saveOrUpdate(java.util.Set<PITGroupSet> pitGroupSets)
insert or update |
void |
updateEndTimeByPITField(java.lang.String fieldId,
java.lang.Long endTime,
java.lang.String contextId)
|
void |
updateEndTimeByPITOwner(java.lang.String ownerId,
java.lang.Long endTime,
java.lang.String contextId)
|
void |
updateEndTimeByPITOwnerAndPITField(java.lang.String ownerId,
java.lang.String fieldId,
java.lang.Long endTime,
java.lang.String contextId)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hib3PITGroupSetDAO
public Hib3PITGroupSetDAO()
saveOrUpdate
public void saveOrUpdate(PITGroupSet pitGroupSet)
- Description copied from interface:
PITGroupSetDAO
- insert or update
- Specified by:
saveOrUpdate
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.saveOrUpdate(edu.internet2.middleware.grouper.pit.PITGroupSet)
saveOrUpdate
public void saveOrUpdate(java.util.Set<PITGroupSet> pitGroupSets)
- Description copied from interface:
PITGroupSetDAO
- insert or update
- Specified by:
saveOrUpdate
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.saveOrUpdate(java.util.Set)
delete
public void delete(PITGroupSet pitGroupSet)
- Description copied from interface:
PITGroupSetDAO
- delete
- Specified by:
delete
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.delete(edu.internet2.middleware.grouper.pit.PITGroupSet)
reset
public static void reset(HibernateSession hibernateSession)
- reset
- Parameters:
hibernateSession
-
findBySourceIdActive
public PITGroupSet findBySourceIdActive(java.lang.String id,
boolean exceptionIfNotFound)
- Specified by:
findBySourceIdActive
in interface PITGroupSetDAO
- Returns:
- PITGroupSet
- See Also:
PITGroupSetDAO.findBySourceIdActive(java.lang.String, boolean)
findBySourceIdUnique
public PITGroupSet findBySourceIdUnique(java.lang.String id,
boolean exceptionIfNotFound)
- Specified by:
findBySourceIdUnique
in interface PITGroupSetDAO
- Returns:
- PITGroupSet
- See Also:
PITGroupSetDAO.findBySourceIdUnique(java.lang.String, boolean)
findById
public PITGroupSet findById(java.lang.String id,
boolean exceptionIfNotFound)
- Specified by:
findById
in interface PITGroupSetDAO
- Returns:
- PITGroupSet
- See Also:
PITGroupSetDAO.findById(java.lang.String, boolean)
insertSelfPITGroupSetsByOwner
public void insertSelfPITGroupSetsByOwner(java.lang.String ownerId,
java.lang.Long startTime,
java.lang.String contextId,
boolean checkIfAlreadyExists)
- Specified by:
insertSelfPITGroupSetsByOwner
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.insertSelfPITGroupSetsByOwner(java.lang.String, java.lang.Long, java.lang.String, boolean)
insertSelfPITGroupSetsByField
public void insertSelfPITGroupSetsByField(java.lang.String fieldId,
java.lang.Long startTime,
java.lang.String contextId)
- Specified by:
insertSelfPITGroupSetsByField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.insertSelfPITGroupSetsByField(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByPITOwner
public void updateEndTimeByPITOwner(java.lang.String ownerId,
java.lang.Long endTime,
java.lang.String contextId)
- Specified by:
updateEndTimeByPITOwner
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByPITOwner(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByPITField
public void updateEndTimeByPITField(java.lang.String fieldId,
java.lang.Long endTime,
java.lang.String contextId)
- Specified by:
updateEndTimeByPITField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByPITField(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByPITOwnerAndPITField
public void updateEndTimeByPITOwnerAndPITField(java.lang.String ownerId,
java.lang.String fieldId,
java.lang.Long endTime,
java.lang.String contextId)
- Specified by:
updateEndTimeByPITOwnerAndPITField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByPITOwnerAndPITField(java.lang.String, java.lang.String, java.lang.Long, java.lang.String)
findSelfPITGroupSet
public PITGroupSet findSelfPITGroupSet(java.lang.String ownerId,
java.lang.String fieldId,
boolean activeOnly)
- Specified by:
findSelfPITGroupSet
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findSelfPITGroupSet(java.lang.String, java.lang.String, boolean)
findActiveImmediateByPITOwnerAndPITMemberAndPITField
public PITGroupSet findActiveImmediateByPITOwnerAndPITMemberAndPITField(java.lang.String ownerId,
java.lang.String memberId,
java.lang.String fieldId)
- Specified by:
findActiveImmediateByPITOwnerAndPITMemberAndPITField
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findActiveImmediateByPITOwnerAndPITMemberAndPITField(java.lang.String, java.lang.String, java.lang.String)
findAllActiveByPITGroupOwnerAndPITField
public java.util.Set<PITGroupSet> findAllActiveByPITGroupOwnerAndPITField(java.lang.String groupId,
PITField field)
- Specified by:
findAllActiveByPITGroupOwnerAndPITField
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllActiveByPITGroupOwnerAndPITField(java.lang.String, edu.internet2.middleware.grouper.pit.PITField)
findAllActiveByMemberPITGroup
public java.util.Set<PITGroupSet> findAllActiveByMemberPITGroup(java.lang.String groupId)
- Specified by:
findAllActiveByMemberPITGroup
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllActiveByMemberPITGroup(java.lang.String)
findAllByMemberPITGroup
public java.util.Set<PITGroupSet> findAllByMemberPITGroup(java.lang.String groupId)
- Specified by:
findAllByMemberPITGroup
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllByMemberPITGroup(java.lang.String)
findAllActiveChildren
public java.util.Set<PITGroupSet> findAllActiveChildren(PITGroupSet pitGroupSet)
- Specified by:
findAllActiveChildren
in interface PITGroupSetDAO
- Returns:
- all nested children of the pit group set
- See Also:
PITGroupSetDAO.findAllActiveChildren(edu.internet2.middleware.grouper.pit.PITGroupSet)
findActiveImmediateChildByParentAndMemberPITGroup
public PITGroupSet findActiveImmediateChildByParentAndMemberPITGroup(PITGroupSet parentPITGroupSet,
java.lang.String memberGroupId)
- Specified by:
findActiveImmediateChildByParentAndMemberPITGroup
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findActiveImmediateChildByParentAndMemberPITGroup(edu.internet2.middleware.grouper.pit.PITGroupSet, java.lang.String)
deleteInactiveRecords
public void deleteInactiveRecords(java.sql.Timestamp time)
- Description copied from interface:
PITGroupSetDAO
- Delete records that ended before the given date.
- Specified by:
deleteInactiveRecords
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.deleteInactiveRecords(java.sql.Timestamp)
findImmediateChildren
public java.util.Set<PITGroupSet> findImmediateChildren(PITGroupSet groupSet)
- Specified by:
findImmediateChildren
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findImmediateChildren(edu.internet2.middleware.grouper.pit.PITGroupSet)
findAllSelfPITGroupSetsByPITOwnerId
public java.util.Set<PITGroupSet> findAllSelfPITGroupSetsByPITOwnerId(java.lang.String id)
- Specified by:
findAllSelfPITGroupSetsByPITOwnerId
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllSelfPITGroupSetsByPITOwnerId(java.lang.String)
deleteSelfByPITOwnerId
public void deleteSelfByPITOwnerId(java.lang.String id)
- Specified by:
deleteSelfByPITOwnerId
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.deleteSelfByPITOwnerId(java.lang.String)
findMissingActivePITGroupSets
public java.util.Set<GroupSet> findMissingActivePITGroupSets()
- Specified by:
findMissingActivePITGroupSets
in interface PITGroupSetDAO
- Returns:
- active group sets that are missing in point in time
- See Also:
PITGroupSetDAO.findMissingActivePITGroupSets()
findMissingInactivePITGroupSets
public java.util.Set<PITGroupSet> findMissingInactivePITGroupSets()
- Specified by:
findMissingInactivePITGroupSets
in interface PITGroupSetDAO
- Returns:
- active point in time group sets that should be inactive
- See Also:
PITGroupSetDAO.findMissingInactivePITGroupSets()