Class Hib3StemSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3StemSetDAO
- All Implemented Interfaces:
GrouperDAO
,StemSetDAO
Data Access Object for stem set
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete a stemSetvoid
delete all stem sets with the given if has stem idfindAllChildren
(Collection<StemSet> stemSets, QueryOptions queryOptions) find by if has stem idfind by if has stem idsfindByIfHasStemOfStemChildrenAndMinDepth
(String stemId, int minDepth, QueryOptions queryOptions) findByIfThenImmediate
(String stemIdIf, String stemIdThen, boolean exceptionIfNotFound) find by if and then (not same) with depth of 1 (immediate)find by then has stem idfind by if has stem id (exclude self stem)void
saveBatch
(Collection<StemSet> stemSets) insert in batchvoid
saveOrUpdate
(StemSet stemSet) insert or update a stemSetMethods 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
-
Hib3StemSetDAO
public Hib3StemSetDAO()
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceStemSetDAO
- Returns:
- the stem set
- Throws:
StemSetNotFoundException
- See Also:
-
saveOrUpdate
Description copied from interface:StemSetDAO
insert or update a stemSet- Specified by:
saveOrUpdate
in interfaceStemSetDAO
- See Also:
-
saveBatch
Description copied from interface:StemSetDAO
insert in batch- Specified by:
saveBatch
in interfaceStemSetDAO
- See Also:
-
findByIfHasStemId
Description copied from interface:StemSetDAO
find by if has stem id- Specified by:
findByIfHasStemId
in interfaceStemSetDAO
- Returns:
- the stem sets
- See Also:
-
findByIfHasStemIds
Description copied from interface:StemSetDAO
find by if has stem ids- Specified by:
findByIfHasStemIds
in interfaceStemSetDAO
- Returns:
- the stem sets
- See Also:
-
findByThenHasStemId
Description copied from interface:StemSetDAO
find by then has stem id- Specified by:
findByThenHasStemId
in interfaceStemSetDAO
- Returns:
- the stem sets
- See Also:
-
findNonSelfByIfHasStemId
Description copied from interface:StemSetDAO
find by if has stem id (exclude self stem)- Specified by:
findNonSelfByIfHasStemId
in interfaceStemSetDAO
- Returns:
- the stem sets
- See Also:
-
delete
Description copied from interface:StemSetDAO
delete a stemSet- Specified by:
delete
in interfaceStemSetDAO
- See Also:
-
findByIfThenImmediate
public StemSet findByIfThenImmediate(String stemIdIf, String stemIdThen, boolean exceptionIfNotFound) throws StemSetNotFoundException Description copied from interface:StemSetDAO
find by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediate
in interfaceStemSetDAO
- Returns:
- the stemSet
- Throws:
StemSetNotFoundException
- See Also:
-
findAllChildren
- Specified by:
findAllChildren
in interfaceStemSetDAO
- Returns:
- children
- See Also:
-
findByIfHasStemOfStemChildrenAndMinDepth
public Set<StemSet> findByIfHasStemOfStemChildrenAndMinDepth(String stemId, int minDepth, QueryOptions queryOptions) - Specified by:
findByIfHasStemOfStemChildrenAndMinDepth
in interfaceStemSetDAO
- Returns:
- stemSets
- See Also:
-
deleteByIfHasStemId
Description copied from interface:StemSetDAO
delete all stem sets with the given if has stem id- Specified by:
deleteByIfHasStemId
in interfaceStemSetDAO
- See Also:
-
findMissingSelfStemSets
- Specified by:
findMissingSelfStemSets
in interfaceStemSetDAO
- Returns:
- stems that are missing self stem sets. First element of the array is the stemId, second is the parentStemId
- See Also:
-