edu.internet2.middleware.grouper.internal.dao
Interface StemSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3StemSetDAO

public interface StemSetDAO
extends GrouperDAO

Author:
shilen $Id$

Method Summary
 void delete(StemSet stemSet)
          delete a stemSet
 void deleteByIfHasStemId(java.lang.String id)
          delete all stem sets with the given if has stem id
 java.util.Set<StemSet> findAllChildren(java.util.Collection<StemSet> stemSets, QueryOptions queryOptions)
           
 StemSet findById(java.lang.String id, boolean exceptionIfNotFound)
           
 java.util.Set<StemSet> findByIfHasStemId(java.lang.String id)
          find by if has stem id
 java.util.Set<StemSet> findByIfHasStemIds(java.util.Collection ids)
          find by if has stem ids
 java.util.Set<StemSet> findByIfHasStemOfStemChildrenAndMinDepth(java.lang.String stemId, int minDepth, QueryOptions queryOptions)
           
 StemSet findByIfThenImmediate(java.lang.String stemIdIf, java.lang.String stemIdThen, boolean exceptionIfNotFound)
          find by if and then (not same) with depth of 1 (immediate)
 java.util.Set<StemSet> findByThenHasStemId(java.lang.String id)
          find by then has stem id
 java.util.Set<java.lang.Object[]> findMissingSelfStemSets()
           
 java.util.Set<StemSet> findNonSelfByIfHasStemId(java.lang.String id)
          find by if has stem id (exclude self stem)
 void saveBatch(java.util.Collection<StemSet> stemSets)
          insert in batch
 void saveOrUpdate(StemSet stemSet)
          insert or update a stemSet
 

Method Detail

saveOrUpdate

void saveOrUpdate(StemSet stemSet)
insert or update a stemSet

Parameters:
stemSet -

saveBatch

void saveBatch(java.util.Collection<StemSet> stemSets)
insert in batch

Parameters:
stemSets -

delete

void delete(StemSet stemSet)
delete a stemSet

Parameters:
stemSet -

findById

StemSet findById(java.lang.String id,
                 boolean exceptionIfNotFound)
                 throws StemSetNotFoundException
Parameters:
id -
exceptionIfNotFound -
Returns:
the stem set
Throws:
StemSetNotFoundException

findByIfHasStemId

java.util.Set<StemSet> findByIfHasStemId(java.lang.String id)
find by if has stem id

Parameters:
id -
Returns:
the stem sets

findByIfHasStemIds

java.util.Set<StemSet> findByIfHasStemIds(java.util.Collection ids)
find by if has stem ids

Parameters:
ids -
Returns:
the stem sets

findByThenHasStemId

java.util.Set<StemSet> findByThenHasStemId(java.lang.String id)
find by then has stem id

Parameters:
id -
Returns:
the stem sets

findNonSelfByIfHasStemId

java.util.Set<StemSet> findNonSelfByIfHasStemId(java.lang.String id)
find by if has stem id (exclude self stem)

Parameters:
id -
Returns:
the stem sets

deleteByIfHasStemId

void deleteByIfHasStemId(java.lang.String id)
delete all stem sets with the given if has stem id

Parameters:
id -

findAllChildren

java.util.Set<StemSet> findAllChildren(java.util.Collection<StemSet> stemSets,
                                       QueryOptions queryOptions)
Parameters:
stemSets -
queryOptions -
Returns:
children

findByIfHasStemOfStemChildrenAndMinDepth

java.util.Set<StemSet> findByIfHasStemOfStemChildrenAndMinDepth(java.lang.String stemId,
                                                                int minDepth,
                                                                QueryOptions queryOptions)
Parameters:
stemId -
minDepth -
queryOptions -
Returns:
stemSets

findByIfThenImmediate

StemSet findByIfThenImmediate(java.lang.String stemIdIf,
                              java.lang.String stemIdThen,
                              boolean exceptionIfNotFound)
                              throws StemSetNotFoundException
find by if and then (not same) with depth of 1 (immediate)

Parameters:
stemIdIf -
stemIdThen -
exceptionIfNotFound -
Returns:
the stemSet
Throws:
StemSetNotFoundException

findMissingSelfStemSets

java.util.Set<java.lang.Object[]> findMissingSelfStemSets()
Returns:
stems that are missing self stem sets. First element of the array is the stemId, second is the parentStemId