Class Hib3PITStemDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITStemDAO
- All Implemented Interfaces:
GrouperDAO
,PITStemDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deletevoid
Delete (won't run pre and post delete methods)long
Delete records that ended before the given date.findByIds
(Collection<String> ids) findByName
(String stemName, boolean orderByStartTime) findBySourceId
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean createIfNotFound, boolean exceptionIfNotFound) findBySourceIdIndexActive
(long sourceIdIndex, boolean exceptionIfNotFound) findBySourceIdUnique
(String id, boolean exceptionIfNotFound) static void
reset
(HibernateSession hibernateSession) resetvoid
saveOrUpdate
(PITStem pitStem) insert or updatevoid
saveOrUpdate
(Set<PITStem> pitStems) insert or updateMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3PITStemDAO
public Hib3PITStemDAO()
-
-
Method Details
-
saveOrUpdate
Description copied from interface:PITStemDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITStemDAO
- See Also:
-
saveOrUpdate
Description copied from interface:PITStemDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITStemDAO
- See Also:
-
delete
Description copied from interface:PITStemDAO
delete- Specified by:
delete
in interfacePITStemDAO
- See Also:
-
reset
reset- Parameters:
hibernateSession
-
-
findBySourceIdActive
- Specified by:
findBySourceIdActive
in interfacePITStemDAO
- Returns:
- PITStem
- See Also:
-
findBySourceIdActive
public PITStem findBySourceIdActive(String id, boolean createIfNotFound, boolean exceptionIfNotFound) - Specified by:
findBySourceIdActive
in interfacePITStemDAO
- Returns:
- PITStem
- See Also:
-
findBySourceIdIndexActive
- Specified by:
findBySourceIdIndexActive
in interfacePITStemDAO
- Returns:
- PITStem
-
findBySourceIdUnique
- Specified by:
findBySourceIdUnique
in interfacePITStemDAO
- Returns:
- PITStem
- See Also:
-
findBySourceId
- Specified by:
findBySourceId
in interfacePITStemDAO
- Returns:
- set of PITStem
- See Also:
-
findById
- Specified by:
findById
in interfacePITStemDAO
- Returns:
- PITStem
- See Also:
-
findByIds
- Specified by:
findByIds
in interfacePITStemDAO
- Returns:
- map of pit stems keyed by id
-
deleteInactiveRecords
Description copied from interface:PITStemDAO
Delete records that ended before the given date.- Specified by:
deleteInactiveRecords
in interfacePITStemDAO
- Returns:
- the number of records deleted
- See Also:
-
findByParentPITStemId
- Specified by:
findByParentPITStemId
in interfacePITStemDAO
- Returns:
- set of PITStem
- See Also:
-
findByName
- Specified by:
findByName
in interfacePITStemDAO
- Returns:
- set of pit stems
-
findMissingActivePITStems
- Specified by:
findMissingActivePITStems
in interfacePITStemDAO
- Returns:
- active stems that are missing in point in time
- See Also:
-
findMissingInactivePITStems
- Specified by:
findMissingInactivePITStems
in interfacePITStemDAO
- Returns:
- active point in time stems that should be inactive
- See Also:
-
findActiveDuplicates
- Specified by:
findActiveDuplicates
in interfacePITStemDAO
- Returns:
- source ids of records that have duplicate active entries in PIT
- See Also:
-
delete
Description copied from interface:PITStemDAO
Delete (won't run pre and post delete methods)- Specified by:
delete
in interfacePITStemDAO
- See Also:
-