org.squashtest.tm.internal.test
public class StubRequirementDao extends Object implements RequirementDao
| Constructor and Description |
|---|
StubRequirementDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFromCache(Collection<ENTITY> entities) |
void |
clearFromCache(ENTITY entity) |
List<org.squashtest.tm.domain.requirement.Requirement> |
findAll() |
List<org.squashtest.tm.domain.requirement.Requirement> |
findAllByIdListOrderedByName(List<Long> requirementsIds) |
List<org.squashtest.tm.domain.requirement.Requirement> |
findAllByIds(Collection<Long> requirementsIds) |
List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> |
findAllBySearchCriteria(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria) |
List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> |
findAllBySearchCriteriaOrderByProject(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria) |
List<Object[]> |
findAllParentsOf(List<Long> requirementIds)
Given a list of requirementIds, returns the corresponding list of [parent, requirement].
|
List<Long> |
findAllRequirementsIdsByLibrary(long libraryId)
Will find all Requirements ids contained in library (not only root ones)
|
org.squashtest.tm.domain.requirement.Requirement |
findByContent(org.squashtest.tm.domain.requirement.Requirement childRequirement)
returns a requirement that contains the given child requirement
|
ENTITY |
findById(long id) |
List<org.squashtest.tm.domain.requirement.Requirement> |
findChildrenRequirements(long requirementId) |
List<org.squashtest.tm.domain.requirement.RequirementCriticality> |
findDistinctRequirementsCriticalities(List<Long> requirementsIds)
returns the list of distinct requirementCriticalities found for all requirementsIds
|
List<org.squashtest.tm.domain.requirement.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) |
List<String> |
findNamesInLibraryStartingWith(long libraryId,
String nameStart) |
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementToExportFromLibrary(List<Long> folderIds) |
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementToExportFromNodes(List<Long> folderIds) |
List<org.squashtest.tm.domain.requirement.RequirementVersion> |
findVersions(Long requirementId)
returns the list of all requirement versions
|
List<org.squashtest.tm.domain.requirement.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) |
void |
removeAll(List<ENTITY> entities) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearFromCache, clearFromCache, flush, persist, persist, remove, removeAllpublic List<org.squashtest.tm.domain.requirement.Requirement> findAllByIds(Collection<Long> requirementsIds)
findAllByIds in interface EntityDao<org.squashtest.tm.domain.requirement.Requirement>EntityDao.findAllByIds(java.util.Collection)public List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
org.squashtest.tm.service.internal.repository.RequirementDao#findNamesInFolderStartingWith(long,
java.lang.String)public List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
org.squashtest.tm.service.internal.repository.RequirementDao#findNamesInLibraryStartingWith(long,
java.lang.String)public List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> findAllBySearchCriteria(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria)
findAllBySearchCriteria in interface RequirementDaoRequirementDao.findAllBySearchCriteria(org.squashtest.tm.domain.requirement.RequirementSearchCriteria)public List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> findAllBySearchCriteriaOrderByProject(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria)
public List<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementToExportFromNodes(List<Long> folderIds)
findRequirementToExportFromNodes in interface RequirementDaoorg.squashtest.tm.service.internal.repository.RequirementDao#findRequirementToExportFromFolder(java.util.List)public List<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementToExportFromLibrary(List<Long> folderIds)
findRequirementToExportFromLibrary in interface RequirementDaoRequirementDao.findRequirementToExportFromLibrary(java.util.List)public List<org.squashtest.tm.domain.requirement.RequirementCriticality> findDistinctRequirementsCriticalitiesVerifiedByTestCases(Set<Long> testCasesIds)
RequirementDaofindDistinctRequirementsCriticalitiesVerifiedByTestCases in interface RequirementDaoorg.squashtest.tm.service.internal.repository.RequirementDao#findDistinctRequirementsCriticalitiesVerifiedByTestCases(java.util.List)public List<org.squashtest.tm.domain.requirement.RequirementCriticality> findDistinctRequirementsCriticalities(List<Long> requirementsIds)
RequirementDaofindDistinctRequirementsCriticalities in interface RequirementDaoRequirementDao.findDistinctRequirementsCriticalities(java.util.List)public List<org.squashtest.tm.domain.requirement.RequirementVersion> findVersions(Long requirementId)
RequirementDaofindVersions in interface RequirementDaoRequirementDao.findVersions(Long)public List<org.squashtest.tm.domain.requirement.RequirementVersion> findVersionsForAll(List<Long> requirementIds)
RequirementDaofindVersionsForAll in interface RequirementDaorequirementIds - the lists of requirement idspublic List<org.squashtest.tm.domain.requirement.Requirement> findAll()
public List<org.squashtest.tm.domain.requirement.Requirement> findAllByIdListOrderedByName(List<Long> requirementsIds)
public List<Long> findAllRequirementsIdsByLibrary(long libraryId)
RequirementDaofindAllRequirementsIdsByLibrary in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.Requirement> findChildrenRequirements(long requirementId)
findChildrenRequirements in interface RequirementDaopublic org.squashtest.tm.domain.requirement.Requirement findByContent(org.squashtest.tm.domain.requirement.Requirement childRequirement)
RequirementDaofindByContent in interface RequirementDaopublic List<Object[]> findAllParentsOf(List<Long> requirementIds)
RequirementDaofindAllParentsOf in interface RequirementDaopublic ENTITY findById(long id)
findById in interface EntityDao<ENTITY>EntityDao.findById(long)public void persist(ENTITY transientEntity)
persist in interface GenericDao<ENTITY>GenericDao.persist(java.lang.Object)public void remove(ENTITY entity)
remove in interface GenericDao<ENTITY>GenericDao.remove(java.lang.Object)public void flush()
flush in interface GenericDao<ENTITY>GenericDao.flush()public void persist(List<ENTITY> transientEntities)
persist in interface GenericDao<ENTITY>GenericDao.persist(List)public void clearFromCache(ENTITY entity)
clearFromCache in interface GenericDao<ENTITY>public void clearFromCache(Collection<ENTITY> entities)
clearFromCache in interface GenericDao<ENTITY>public void removeAll(List<ENTITY> entities)
removeAll in interface GenericDao<ENTITY>Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.