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


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<Campaign> findAllByIdList(List<Long> campaignIds)
           
 List<CampaignLibraryNode> findAllByNameContaining(String tokenInName, boolean groupByProject)
          Finds all CampaignLibraryNode which name contains the given token.
 List<Campaign> findAllCampaign()
           
 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
findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, 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
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

findAllCampaign

public List<Campaign> findAllCampaign()
Specified by:
findAllCampaign 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:

findAllByIdList

public List<Campaign> findAllByIdList(List<Long> campaignIds)
Specified by:
findAllByIdList in interface CampaignDao
Specified by:
findAllByIdList in interface EntityDao<Campaign>
Overrides:
findAllByIdList in class HibernateEntityDao<Campaign>


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.