org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateRequirementFolderDao
java.lang.Object
org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<RequirementFolder>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateRequirementFolderDao
- All Implemented Interfaces:
- EntityDao<RequirementFolder>, FolderDao<RequirementFolder,RequirementLibraryNode>, RequirementFolderDao
@Repository
public class HibernateRequirementFolderDao
- extends HibernateEntityDao<RequirementFolder>
- implements RequirementFolderDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateRequirementFolderDao
public HibernateRequirementFolderDao()
findAllContentById
public List<RequirementLibraryNode> findAllContentById(long folderId)
- Specified by:
findAllContentById in interface FolderDao<RequirementFolder,RequirementLibraryNode>
findByContent
public RequirementFolder findByContent(RequirementLibraryNode node)
- Description copied from interface:
FolderDao
- Finds the folder which has the given node in its content.
- Specified by:
findByContent in interface FolderDao<RequirementFolder,RequirementLibraryNode>
- Returns:
findNamesInFolderStartingWith
public List<String> findNamesInFolderStartingWith(long folderId,
String nameStart)
- Specified by:
findNamesInFolderStartingWith in interface FolderDao<RequirementFolder,RequirementLibraryNode>
findNamesInLibraryStartingWith
public List<String> findNamesInLibraryStartingWith(long libraryId,
String nameStart)
- Specified by:
findNamesInLibraryStartingWith in interface FolderDao<RequirementFolder,RequirementLibraryNode>
findPairedContentForList
public List<Long[]> findPairedContentForList(List<Long> ids)
- Specified by:
findPairedContentForList in interface FolderDao<RequirementFolder,RequirementLibraryNode>
- 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<RequirementFolder,RequirementLibraryNode>
- Returns:
- the list of the node ids which are descendant of the given folder ids.
findAllFolders
public List<RequirementFolder> 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<RequirementFolder,RequirementLibraryNode>
- Returns:
Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.