org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateCampaignDao
java.lang.Object
org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<Campaign>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateCampaignDao
- All Implemented Interfaces:
- CampaignDao, EntityDao<Campaign>, GenericDao<Campaign>
@Repository
public class HibernateCampaignDao
- extends HibernateEntityDao<Campaign>
- implements CampaignDao
| Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao |
clearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeEntity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateCampaignDao
public HibernateCampaignDao()
findByIdWithInitializedIterations
public Campaign findByIdWithInitializedIterations(long campaignId)
- Specified by:
findByIdWithInitializedIterations in interface CampaignDao
findAllTestPlanByIdFiltered
public List<CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId,
CollectionSorting filter)
- Specified by:
findAllTestPlanByIdFiltered in interface CampaignDao
countTestPlanById
public long countTestPlanById(long campaignId)
- Specified by:
countTestPlanById in interface CampaignDao
findNamesInFolderStartingWith
public List<String> findNamesInFolderStartingWith(long folderId,
String nameStart)
- Specified by:
findNamesInFolderStartingWith in interface CampaignDao
findNamesInCampaignStartingWith
public List<String> findNamesInCampaignStartingWith(long campaignId,
String nameStart)
- Specified by:
findNamesInCampaignStartingWith in interface CampaignDao
findAllNamesInCampaign
public List<String> findAllNamesInCampaign(long campaignId)
- Specified by:
findAllNamesInCampaign in interface CampaignDao
findNamesInLibraryStartingWith
public List<String> findNamesInLibraryStartingWith(long libraryId,
String nameStart)
- Specified by:
findNamesInLibraryStartingWith in interface CampaignDao
findAllByNameContaining
public List<CampaignLibraryNode> findAllByNameContaining(String tokenInName,
boolean groupByProject)
- Description copied from interface:
CampaignDao
- Finds all
CampaignLibraryNode which name contains the given token.
- Specified by:
findAllByNameContaining in interface CampaignDao
- Returns:
findAllExecutionsByCampaignId
public List<Execution> findAllExecutionsByCampaignId(Long campaignId)
- Description copied from interface:
CampaignDao
- find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan
- Specified by:
findAllExecutionsByCampaignId in interface CampaignDao
- Returns:
- list of executions of all iterations
findCampaignStatistics
public TestPlanStatistics findCampaignStatistics(long campaignId)
- Specified by:
findCampaignStatistics in interface CampaignDao
- Parameters:
campaignId - the id of the concerned campaign
- Returns:
- the computed
TestPlanStatistics out of each test-plan-item of each campaign's iteration
countRunningOrDoneExecutions
public long countRunningOrDoneExecutions(long campaignId)
- Specified by:
countRunningOrDoneExecutions in interface CampaignDao
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.