@Repository public class HibernateCampaignDao extends HibernateEntityDao<org.squashtest.tm.domain.campaign.Campaign> implements CampaignDao
entityManager, entityType| Constructor and Description |
|---|
HibernateCampaignDao() |
| Modifier and Type | Method and Description |
|---|---|
long |
countFilteredTestPlanById(long campaignId,
org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering) |
int |
countIterations(long campaignId)
Returns how many iterations this campaign have
|
long |
countRunningOrDoneExecutions(long campaignId) |
long |
countTestPlanById(long campaignId) |
List<Long> |
filterByMilestone(Collection<Long> campaignIds,
Long milestoneId)
For a given collection of campaign ids, will return only those that belong
to a milestone (given its id).
|
List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
findAllByNameContaining(String tokenInName,
boolean groupByProject)
Finds all
CampaignLibraryNode which name contains the given token. |
List<Long> |
findAllCampaignIdsByLibraries(Collection<Long> libraryIds) |
List<Long> |
findAllCampaignIdsByNodeIds(Collection<Long> nodeIds) |
List<org.squashtest.tm.domain.execution.Execution> |
findAllExecutionsByCampaignId(Long campaignId)
find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan
|
List<Long> |
findAllIdsByMilestone(Long milestoneId) |
List<String> |
findAllNamesInCampaign(long campaignId) |
List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> |
findAllTestPlanByIdFiltered(long campaignId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting filter) |
org.squashtest.tm.domain.campaign.Campaign |
findByIdWithInitializedIterations(long campaignId) |
List<Long> |
findCampaignIdsHavingMultipleMilestones(List<Long> nodeIds) |
org.squashtest.tm.domain.campaign.TestPlanStatistics |
findCampaignStatistics(long campaignId) |
List<IndexedCampaignTestPlanItem> |
findFilteredIndexedTestPlan(long campaignId,
org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering) |
List<IndexedCampaignTestPlanItem> |
findIndexedTestPlan(long campaignId,
org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
Returns the paged list of [index, CampaignTestPlanItem] wrapped in an
IndexedIterationTestPlanItem |
List<IndexedCampaignTestPlanItem> |
findIndexedTestPlan(long campaignId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
Returns the paged list of [index, CampaignTestPlanItem] wrapped in an
IndexedIterationTestPlanItem |
List<String> |
findNamesInCampaignStartingWith(long campaignId,
String nameStart) |
List<String> |
findNamesInFolderStartingWith(long folderId,
String nameStart) |
List<String> |
findNamesInLibraryStartingWith(long libraryId,
String nameStart) |
List<Long> |
findNonBoundCampaign(Collection<Long> nodeIds,
Long milestoneId) |
List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> |
findTestPlan(long campaignId,
org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting) |
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 org.squashtest.tm.domain.campaign.Campaign findByIdWithInitializedIterations(long campaignId)
findByIdWithInitializedIterations in interface CampaignDaopublic List<Long> findAllCampaignIdsByLibraries(Collection<Long> libraryIds)
findAllCampaignIdsByLibraries in interface CampaignDaopublic List<Long> findAllCampaignIdsByNodeIds(Collection<Long> nodeIds)
findAllCampaignIdsByNodeIds in interface CampaignDaopublic List<Long> filterByMilestone(Collection<Long> campaignIds, Long milestoneId)
CampaignDaofilterByMilestone in interface CampaignDaopublic List<Long> findAllIdsByMilestone(Long milestoneId)
findAllIdsByMilestone in interface CampaignDaopublic List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
findAllTestPlanByIdFiltered in interface CampaignDaopublic List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
findTestPlan in interface CampaignDaopublic List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
CampaignDaoIndexedIterationTestPlanItemfindIndexedTestPlan in interface CampaignDaopublic List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
CampaignDaoIndexedIterationTestPlanItemfindIndexedTestPlan in interface CampaignDaopublic List<IndexedCampaignTestPlanItem> findFilteredIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)
findFilteredIndexedTestPlan in interface CampaignDaopublic long countFilteredTestPlanById(long campaignId,
org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)
countFilteredTestPlanById in interface CampaignDaopublic long countTestPlanById(long campaignId)
countTestPlanById in interface CampaignDaopublic int countIterations(long campaignId)
CampaignDaocountIterations in interface CampaignDaopublic List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
findNamesInFolderStartingWith in interface CampaignDaopublic List<String> findNamesInCampaignStartingWith(long campaignId, String nameStart)
findNamesInCampaignStartingWith in interface CampaignDaopublic List<String> findAllNamesInCampaign(long campaignId)
findAllNamesInCampaign in interface CampaignDaopublic List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
findNamesInLibraryStartingWith in interface CampaignDaopublic List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> findAllByNameContaining(String tokenInName, boolean groupByProject)
CampaignDaoCampaignLibraryNode which name contains the given token.findAllByNameContaining in interface CampaignDaopublic List<org.squashtest.tm.domain.execution.Execution> findAllExecutionsByCampaignId(Long campaignId)
CampaignDaofindAllExecutionsByCampaignId in interface CampaignDaopublic org.squashtest.tm.domain.campaign.TestPlanStatistics findCampaignStatistics(long campaignId)
findCampaignStatistics in interface CampaignDaocampaignId - the id of the concerned campaignTestPlanStatistics out of each test-plan-item of each campaign's iterationpublic long countRunningOrDoneExecutions(long campaignId)
countRunningOrDoneExecutions in interface CampaignDaopublic List<Long> findNonBoundCampaign(Collection<Long> nodeIds, Long milestoneId)
findNonBoundCampaign in interface CampaignDaopublic List<Long> findCampaignIdsHavingMultipleMilestones(List<Long> nodeIds)
findCampaignIdsHavingMultipleMilestones in interface CampaignDaoCopyright © 2010–2017 Henix, henix.fr. All rights reserved.