org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateCampaignDao

java.lang.Object
  extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<Campaign>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateCampaignDao
All Implemented Interfaces:
CampaignDao, EntityDao<Campaign>

@Repository
public class HibernateCampaignDao
extends HibernateEntityDao<Campaign>
implements CampaignDao


Nested Class Summary
 
Nested classes/interfaces inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
HibernateEntityDao.ContainerIdNameStartParameterCallback
 
Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateCampaignDao()
           
 
Method Summary
 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)
           
 List<String> findNamesInCampaignStartingWith(long campaignId, String nameStart)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAll, findAllByIds, findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAll, findAllByIds, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateCampaignDao

public HibernateCampaignDao()
Method Detail

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


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