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>, GenericDao<RequirementFolder>, RequirementFolderDao
@Repository
public class HibernateRequirementFolderDao
- extends HibernateEntityDao<RequirementFolder>
- implements RequirementFolderDao
| Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao |
clearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeEntity |
| 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.
findParentOf
public RequirementFolder findParentOf(Long id)
- Description copied from interface:
FolderDao
- will return the parent folder of the node with the id parameter
- Specified by:
findParentOf in interface FolderDao<RequirementFolder,RequirementLibraryNode>
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.