org.squashtest.csp.tm.domain.event
Class StubRequirementDao

java.lang.Object
  extended by org.squashtest.csp.tm.domain.event.StubRequirementDao
All Implemented Interfaces:
EntityDao<Requirement>, RequirementDao

public class StubRequirementDao
extends Object
implements RequirementDao

Author:
Gregory Fouquet

Constructor Summary
StubRequirementDao()
           
 
Method Summary
 List<Requirement> findAll()
           
 List<Requirement> findAllByIdListOrderedByName(List<Long> requirementsIds)
          returns all the requirements matching the given ids, ordered by name
 List<Requirement> findAllByIds(Collection<Long> requirementsIds)
           
 List<RequirementLibraryNode> findAllBySearchCriteria(RequirementSearchCriteria criteria)
           
 List<RequirementLibraryNode> findAllBySearchCriteriaOrderByProject(RequirementSearchCriteria criteria)
           
 ENTITY findById(long id)
           
 List<RequirementCriticality> findDistinctRequirementsCriticalities(List<Long> requirementsIds)
          returns the list of distinct requirementCriticalities found for all requirementsIds
 List<RequirementCriticality> findDistinctRequirementsCriticalitiesVerifiedByTestCases(Set<Long> testCasesIds)
          Returns collection of distinct requirements criticalities verified by any of the given verifiers.
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
          return all the test case directly verifying the requirement
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 List<ExportRequirementData> findRequirementToExportFromFolder(List<Long> folderIds)
           
 List<ExportRequirementData> findRequirementToExportFromLibrary(List<Long> folderIds)
           
 List<RequirementVersion> findVersions(Long requirementId)
          returns the list of all requirement versions
 List<RequirementVersion> findVersionsForAll(List<Long> requirementIds)
          returns the list of all requirement versions for all the specified requirements
 void flush()
           
 void persist(ENTITY transientEntity)
           
 void persist(List<ENTITY> transientEntities)
           
 void remove(ENTITY entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findById, flush, persist, persist, remove
 

Constructor Detail

StubRequirementDao

public StubRequirementDao()
Method Detail

findAllByIds

public List<Requirement> findAllByIds(Collection<Long> requirementsIds)
Specified by:
findAllByIds in interface EntityDao<Requirement>
See Also:
EntityDao.findAllByIds(java.util.Collection)

findNamesInFolderStartingWith

public List<String> findNamesInFolderStartingWith(long folderId,
                                                  String nameStart)
Description copied from interface: RequirementDao
return all the test case directly verifying the requirement

Specified by:
findNamesInFolderStartingWith in interface RequirementDao
Returns:
list of directly associated test-cases
See Also:
RequirementDao.findNamesInFolderStartingWith(long, java.lang.String)

findNamesInLibraryStartingWith

public List<String> findNamesInLibraryStartingWith(long libraryId,
                                                   String nameStart)
Specified by:
findNamesInLibraryStartingWith in interface RequirementDao
See Also:
RequirementDao.findNamesInLibraryStartingWith(long, java.lang.String)

findAllBySearchCriteria

public List<RequirementLibraryNode> findAllBySearchCriteria(RequirementSearchCriteria criteria)
Specified by:
findAllBySearchCriteria in interface RequirementDao
See Also:
RequirementDao.findAllBySearchCriteria(org.squashtest.csp.tm.domain.requirement.RequirementSearchCriteria)

findAllBySearchCriteriaOrderByProject

public List<RequirementLibraryNode> findAllBySearchCriteriaOrderByProject(RequirementSearchCriteria criteria)
Specified by:
findAllBySearchCriteriaOrderByProject in interface RequirementDao
See Also:
RequirementDao.findAllBySearchCriteriaOrderByProject(org.squashtest.csp.tm.domain.requirement.RequirementSearchCriteria)

findRequirementToExportFromFolder

public List<ExportRequirementData> findRequirementToExportFromFolder(List<Long> folderIds)
Specified by:
findRequirementToExportFromFolder in interface RequirementDao
See Also:
RequirementDao.findRequirementToExportFromFolder(java.util.List)

findRequirementToExportFromLibrary

public List<ExportRequirementData> findRequirementToExportFromLibrary(List<Long> folderIds)
Specified by:
findRequirementToExportFromLibrary in interface RequirementDao
See Also:
RequirementDao.findRequirementToExportFromLibrary(java.util.List)

findDistinctRequirementsCriticalitiesVerifiedByTestCases

public List<RequirementCriticality> findDistinctRequirementsCriticalitiesVerifiedByTestCases(Set<Long> testCasesIds)
Description copied from interface: RequirementDao
Returns collection of distinct requirements criticalities verified by any of the given verifiers.

Specified by:
findDistinctRequirementsCriticalitiesVerifiedByTestCases in interface RequirementDao
Returns:
unsorted collection of distinct requirements criticalities verified by any of the given verifiers.
See Also:
org.squashtest.csp.tm.internal.repository.RequirementDao#findDistinctRequirementsCriticalitiesVerifiedByTestCases(java.util.List)

findDistinctRequirementsCriticalities

public List<RequirementCriticality> findDistinctRequirementsCriticalities(List<Long> requirementsIds)
Description copied from interface: RequirementDao
returns the list of distinct requirementCriticalities found for all requirementsIds

Specified by:
findDistinctRequirementsCriticalities in interface RequirementDao
Returns:
See Also:
RequirementDao.findDistinctRequirementsCriticalities(java.util.List)

findVersions

public List<RequirementVersion> findVersions(Long requirementId)
Description copied from interface: RequirementDao
returns the list of all requirement versions

Specified by:
findVersions in interface RequirementDao
Returns:
See Also:
RequirementDao.findVersions(Long)

findVersionsForAll

public List<RequirementVersion> findVersionsForAll(List<Long> requirementIds)
Description copied from interface: RequirementDao
returns the list of all requirement versions for all the specified requirements

Specified by:
findVersionsForAll in interface RequirementDao
Parameters:
requirementIds - the lists of requirement ids
Returns:

findAll

public List<Requirement> findAll()
Specified by:
findAll in interface EntityDao<Requirement>

findAllByIdListOrderedByName

public List<Requirement> findAllByIdListOrderedByName(List<Long> requirementsIds)
Description copied from interface: RequirementDao
returns all the requirements matching the given ids, ordered by name

Specified by:
findAllByIdListOrderedByName in interface RequirementDao
Returns:

findById

public ENTITY findById(long id)
Specified by:
findById in interface EntityDao<ENTITY>
See Also:
EntityDao.findById(long)

persist

public void persist(ENTITY transientEntity)
Specified by:
persist in interface EntityDao<ENTITY>
See Also:
EntityDao.persist(java.lang.Object)

remove

public void remove(ENTITY entity)
Specified by:
remove in interface EntityDao<ENTITY>
See Also:
EntityDao.remove(java.lang.Object)

flush

public void flush()
Specified by:
flush in interface EntityDao<ENTITY>
See Also:
EntityDao.flush()

persist

public void persist(List<ENTITY> transientEntities)
Specified by:
persist in interface EntityDao<ENTITY>
See Also:
EntityDao.persist(List)


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.