org.squashtest.csp.tm.internal.repository
Interface CampaignDao

All Superinterfaces:
EntityDao<Campaign>, GenericDao<Campaign>
All Known Implementing Classes:
HibernateCampaignDao

public interface CampaignDao
extends EntityDao<Campaign>


Method Summary
 long countRunningOrDoneExecutions(long campaignId)
           
 long countTestPlanById(long campaignId)
           
 List<CampaignLibraryNode> findAllByNameContaining(String tokenInName, boolean groupByProject)
          Finds all CampaignLibraryNode which name contains the given token.
 List<Execution> findAllExecutionsByCampaignId(Long campaignId)
          find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan
 List<String> findAllNamesInCampaign(long campaignId)
           
 List<CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId, CollectionSorting filter)
           
 Campaign findByIdWithInitializedIterations(long campaignId)
           
 TestPlanStatistics findCampaignStatistics(long campaignId)
           
 List<String> findNamesInCampaignStartingWith(long campaignId, String nameStart)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove
 

Method Detail

findByIdWithInitializedIterations

Campaign findByIdWithInitializedIterations(long campaignId)

findAllTestPlanByIdFiltered

List<CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId,
                                                       CollectionSorting filter)

countTestPlanById

long countTestPlanById(long campaignId)

findNamesInFolderStartingWith

List<String> findNamesInFolderStartingWith(long folderId,
                                           String nameStart)

findNamesInLibraryStartingWith

List<String> findNamesInLibraryStartingWith(long libraryId,
                                            String nameStart)

findNamesInCampaignStartingWith

List<String> findNamesInCampaignStartingWith(long campaignId,
                                             String nameStart)

findAllNamesInCampaign

List<String> findAllNamesInCampaign(long campaignId)

findAllByNameContaining

List<CampaignLibraryNode> findAllByNameContaining(String tokenInName,
                                                  boolean groupByProject)
Finds all CampaignLibraryNode which name contains the given token.

Parameters:
tokenInName -
groupByProject -
Returns:

findAllExecutionsByCampaignId

List<Execution> findAllExecutionsByCampaignId(Long campaignId)
find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan

Parameters:
campaignId -
Returns:
list of executions of all iterations

findCampaignStatistics

TestPlanStatistics findCampaignStatistics(long campaignId)
Parameters:
campaignId - the id of the concerned campaign
Returns:
the computed TestPlanStatistics out of each test-plan-item of each campaign's iteration

countRunningOrDoneExecutions

long countRunningOrDoneExecutions(long campaignId)


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