@Repository public class HibernateRequirementDao extends HibernateEntityDao<org.squashtest.tm.domain.requirement.Requirement> implements RequirementDao
entityManager, entityType| Constructor and Description |
|---|
HibernateRequirementDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPathInfosToExportInfos(Map<Long,Object[]> reqAndFolderPathAndReqPathById,
List<Object[]> idAndPaths,
int pathInfoIndex) |
List<Long> |
filterRequirementHavingManyVersions(Collection<Long> requirementIds)
given requirement ids, return which of them refer to requirements having more than one versions
|
List<Object[]> |
findAllParentsOf(List<Long> requirementIds)
Given a list of requirementIds, returns the corresponding list of [parent, requirement].
|
List<Long> |
findAllRequirementIdsFromMilestones(Collection<Long> milestoneIds) |
List<Long> |
findAllRequirementsIdsByLibrary(Collection<Long> libraryIds)
Will find all Requirements ids contained in a list of library (not only root ones)
|
List<Long> |
findAllRequirementsIdsByLibrary(long libraryId)
Will find all Requirements ids contained in library (not only root ones)
|
List<Long> |
findAllRequirementsIdsByNodes(Collection<Long> nodeIds)
Return all Ids from Requirement who are under the nodes specified in nodeIds.
|
org.squashtest.tm.domain.requirement.Requirement |
findByContent(org.squashtest.tm.domain.requirement.Requirement child)
returns a requirement that contains the given child requirement
|
List<Long> |
findByRequirementVersion(Collection<Long> versionIds) |
List<org.squashtest.tm.domain.requirement.Requirement> |
findChildrenRequirements(long requirementId) |
List<Long> |
findDescendantRequirementIds(Collection<Long> params)
Return the id of all the descendants of param requirements
|
List<org.squashtest.tm.domain.requirement.RequirementCriticality> |
findDistinctRequirementsCriticalities(List<Long> requirementVersionsIds)
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<Long> |
findIdsVersionsForAll(List<Long> requirementIds)
returns the list of all id's of requirement versions for all the specified requirements
used for export as we only need id not complete entity.
|
Long |
findNodeIdByRemoteKey(String remoteKey,
String projectName) |
List<Long> |
findNodeIdsByRemoteKeys(Collection<String> remoteKeys,
String projectName) |
List<Long> |
findNonBoundRequirement(Collection<Long> nodeIds,
Long milestoneId) |
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementToExportFromLibrary(List<Long> libraryIds) |
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementToExportFromNodes(List<Long> params) |
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
|
findAll, findAllByIds, findById, findDescendantIds, getIdPropertyNamecurrentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllByIds, findByIdpublic List<org.squashtest.tm.domain.requirement.Requirement> findChildrenRequirements(long requirementId)
findChildrenRequirements in interface RequirementDaopublic List<Long> findByRequirementVersion(Collection<Long> versionIds)
findByRequirementVersion in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementToExportFromNodes(List<Long> params)
findRequirementToExportFromNodes in interface RequirementDaopublic List<Long> findDescendantRequirementIds(Collection<Long> params)
RequirementDaofindDescendantRequirementIds in interface RequirementDaopublic void addPathInfosToExportInfos(Map<Long,Object[]> reqAndFolderPathAndReqPathById, List<Object[]> idAndPaths, int pathInfoIndex)
public List<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementToExportFromLibrary(List<Long> libraryIds)
findRequirementToExportFromLibrary in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.RequirementCriticality> findDistinctRequirementsCriticalitiesVerifiedByTestCases(Set<Long> testCasesIds)
RequirementDaofindDistinctRequirementsCriticalitiesVerifiedByTestCases in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.RequirementCriticality> findDistinctRequirementsCriticalities(List<Long> requirementVersionsIds)
RequirementDaofindDistinctRequirementsCriticalities in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.RequirementVersion> findVersions(Long requirementId)
RequirementDaofindVersions in interface RequirementDaopublic List<org.squashtest.tm.domain.requirement.RequirementVersion> findVersionsForAll(List<Long> requirementIds)
RequirementDaofindVersionsForAll in interface RequirementDaorequirementIds - the lists of requirement idspublic List<Long> findAllRequirementsIdsByLibrary(long libraryId)
RequirementDaofindAllRequirementsIdsByLibrary in interface RequirementDaopublic org.squashtest.tm.domain.requirement.Requirement findByContent(org.squashtest.tm.domain.requirement.Requirement child)
RequirementDaofindByContent in interface RequirementDaopublic List<Object[]> findAllParentsOf(List<Long> requirementIds)
RequirementDaofindAllParentsOf in interface RequirementDaopublic List<Long> findNonBoundRequirement(Collection<Long> nodeIds, Long milestoneId)
findNonBoundRequirement in interface RequirementDaopublic List<Long> filterRequirementHavingManyVersions(Collection<Long> requirementIds)
RequirementDaofilterRequirementHavingManyVersions in interface RequirementDaopublic List<Long> findAllRequirementsIdsByLibrary(Collection<Long> libraryIds)
RequirementDaofindAllRequirementsIdsByLibrary in interface RequirementDaopublic List<Long> findAllRequirementsIdsByNodes(Collection<Long> nodeIds)
RequirementDaofindAllRequirementsIdsByNodes in interface RequirementDaopublic List<Long> findIdsVersionsForAll(List<Long> requirementIds)
RequirementDaofindIdsVersionsForAll in interface RequirementDaorequirementIds - the lists of requirement idspublic Long findNodeIdByRemoteKey(String remoteKey, String projectName)
findNodeIdByRemoteKey in interface RequirementDaopublic List<Long> findNodeIdsByRemoteKeys(Collection<String> remoteKeys, String projectName)
findNodeIdsByRemoteKeys in interface RequirementDaopublic List<Long> findAllRequirementIdsFromMilestones(Collection<Long> milestoneIds)
findAllRequirementIdsFromMilestones in interface RequirementDaoCopyright © 2010–2017 Henix, henix.fr. All rights reserved.