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

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<CampaignFolder>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateCampaignFolderDao
All Implemented Interfaces:
CampaignFolderDao, EntityDao<CampaignFolder>, FolderDao<CampaignFolder,CampaignLibraryNode>

@Repository
public class HibernateCampaignFolderDao
extends HibernateEntityDao<CampaignFolder>
implements CampaignFolderDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateCampaignFolderDao()
           
 
Method Summary
 List<CampaignLibraryNode> findAllContentById(long folderId)
           
 List<CampaignFolder> findAllFolders(List<Long> folderIds)
          will return a (non-null) list of test case folders given their ids
 CampaignFolder findByContent(CampaignLibraryNode node)
          Finds the folder which has the given node in its content.
 List<Long> findContentForList(List<Long> ids)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 List<Long[]> findPairedContentForList(List<Long> ids)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAllByIdList, 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
findAllByIdList, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateCampaignFolderDao

public HibernateCampaignFolderDao()
Method Detail

findAllContentById

public List<CampaignLibraryNode> findAllContentById(long folderId)
Specified by:
findAllContentById in interface FolderDao<CampaignFolder,CampaignLibraryNode>

findByContent

public CampaignFolder findByContent(CampaignLibraryNode node)
Description copied from interface: FolderDao
Finds the folder which has the given node in its content.

Specified by:
findByContent in interface FolderDao<CampaignFolder,CampaignLibraryNode>
Returns:

findNamesInFolderStartingWith

public List<String> findNamesInFolderStartingWith(long folderId,
                                                  String nameStart)
Specified by:
findNamesInFolderStartingWith in interface FolderDao<CampaignFolder,CampaignLibraryNode>

findNamesInLibraryStartingWith

public List<String> findNamesInLibraryStartingWith(long libraryId,
                                                   String nameStart)
Specified by:
findNamesInLibraryStartingWith in interface FolderDao<CampaignFolder,CampaignLibraryNode>

findPairedContentForList

public List<Long[]> findPairedContentForList(List<Long> ids)
Specified by:
findPairedContentForList in interface FolderDao<CampaignFolder,CampaignLibraryNode>
Returns:
the list of the node ids which are descendant of the given folder ids paired with their owners

findContentForList

public List<Long> findContentForList(List<Long> ids)
Specified by:
findContentForList in interface FolderDao<CampaignFolder,CampaignLibraryNode>
Returns:
the list of the node ids which are descendant of the given folder ids.

findAllFolders

public List<CampaignFolder> findAllFolders(List<Long> folderIds)
Description copied from interface: FolderDao
will return a (non-null) list of test case folders given their ids

Specified by:
findAllFolders in interface FolderDao<CampaignFolder,CampaignLibraryNode>
Returns:


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