org.squashtest.tm.service.internal.repository
Interface CustomRequirementVersionCoverageDao

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.testcase.RequirementVersionCoverage>, GenericDao<org.squashtest.tm.domain.testcase.RequirementVersionCoverage>
All Known Subinterfaces:
RequirementVersionCoverageDao
All Known Implementing Classes:
HibernateRequirementVersionCoverageDao

public interface CustomRequirementVersionCoverageDao
extends EntityDao<org.squashtest.tm.domain.testcase.RequirementVersionCoverage>


Method Summary
 List<org.squashtest.tm.domain.testcase.RequirementVersionCoverage> findAllByTestCaseId(long testCaseId, org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
          Returns a paged and ordered list taken from all RequirementVersionCoverage directly linked to the TestCase matching the given id param.
 List<org.squashtest.tm.domain.requirement.RequirementVersion> findDistinctRequirementVersionsByTestCases(Collection<Long> testCaseIds)
          Returns a list of all DISTINCT RequirementVersion linked to at least one of the TestCases matching the given ids param.
 List<org.squashtest.tm.domain.requirement.RequirementVersion> findDistinctRequirementVersionsByTestCases(Collection<Long> testCaseIds, org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
          Returns a paged and ordered list taken from all DISTINCT RequirementVersion linked to at least one of the TestCases matching the given ids param.
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Method Detail

findAllByTestCaseId

List<org.squashtest.tm.domain.testcase.RequirementVersionCoverage> findAllByTestCaseId(long testCaseId,
                                                                                       org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
Returns a paged and ordered list taken from all RequirementVersionCoverage directly linked to the TestCase matching the given id param.

Parameters:
testCaseId - : the id of the verifying TestCase
pas - : the PagingAndSorting param to organize the result with
Returns:
: a list of RequirementVersionCoverage representing a sorted page of all direct coverages for the given test case

findDistinctRequirementVersionsByTestCases

List<org.squashtest.tm.domain.requirement.RequirementVersion> findDistinctRequirementVersionsByTestCases(Collection<Long> testCaseIds,
                                                                                                         org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
Returns a paged and ordered list taken from all DISTINCT RequirementVersion linked to at least one of the TestCases matching the given ids param.

Parameters:
testCaseIds - : the ids of the verifying TestCases
pas - : the PagingAndSorting param to organize the result with
Returns:
: a list of RequirementVersion representing a sorted page of distinct requirements for the given test cases

findDistinctRequirementVersionsByTestCases

@Transactional(readOnly=true)
List<org.squashtest.tm.domain.requirement.RequirementVersion> findDistinctRequirementVersionsByTestCases(Collection<Long> testCaseIds)
Returns a list of all DISTINCT RequirementVersion linked to at least one of the TestCases matching the given ids param.

Parameters:
testCaseIds - : the ids of the verifying TestCases
Returns:
: a list of RequirementVersion representing all distinct requirements for the given test cases


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