org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateCampaignFolderDao
java.lang.Object
org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<CampaignFolder>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateCampaignFolderDao
public HibernateCampaignFolderDao()
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.