Interface StemSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3StemSetDAO

public interface StemSetDAO extends GrouperDAO
  • Method Details

    • saveOrUpdate

      void saveOrUpdate(StemSet stemSet)
      insert or update a stemSet
      Parameters:
      stemSet -
    • saveBatch

      void saveBatch(Collection<StemSet> stemSets)
      insert in batch
      Parameters:
      stemSets -
    • delete

      void delete(StemSet stemSet)
      delete a stemSet
      Parameters:
      stemSet -
    • findById

      StemSet findById(String id, boolean exceptionIfNotFound) throws StemSetNotFoundException
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      the stem set
      Throws:
      StemSetNotFoundException
    • findByIfHasStemId

      Set<StemSet> findByIfHasStemId(String id)
      find by if has stem id
      Parameters:
      id -
      Returns:
      the stem sets
    • findByIfHasStemIds

      Set<StemSet> findByIfHasStemIds(Collection ids)
      find by if has stem ids
      Parameters:
      ids -
      Returns:
      the stem sets
    • findByThenHasStemId

      Set<StemSet> findByThenHasStemId(String id)
      find by then has stem id
      Parameters:
      id -
      Returns:
      the stem sets
    • findNonSelfByIfHasStemId

      Set<StemSet> findNonSelfByIfHasStemId(String id)
      find by if has stem id (exclude self stem)
      Parameters:
      id -
      Returns:
      the stem sets
    • deleteByIfHasStemId

      void deleteByIfHasStemId(String id)
      delete all stem sets with the given if has stem id
      Parameters:
      id -
    • findAllChildren

      Set<StemSet> findAllChildren(Collection<StemSet> stemSets, QueryOptions queryOptions)
      Parameters:
      stemSets -
      queryOptions -
      Returns:
      children
    • findByIfHasStemOfStemChildrenAndMinDepth

      Set<StemSet> findByIfHasStemOfStemChildrenAndMinDepth(String stemId, int minDepth, QueryOptions queryOptions)
      Parameters:
      stemId -
      minDepth -
      queryOptions -
      Returns:
      stemSets
    • findByIfThenImmediate

      StemSet findByIfThenImmediate(String stemIdIf, 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

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