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

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<Requirement>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateRequirementDao
All Implemented Interfaces:
EntityDao<Requirement>, RequirementDao

@Repository
public class HibernateRequirementDao
extends HibernateEntityDao<Requirement>
implements RequirementDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateRequirementDao()
           
 
Method Summary
 List<Requirement> findAllByIdList(List<Long> requirementsIds)
          returns all the requirements matching the given ids.
 List<RequirementLibraryNode> findAllBySearchCriteria(RequirementSearchCriteria searchCriteria)
           
 List<RequirementLibraryNode> findAllBySearchCriteriaOrderByProject(RequirementSearchCriteria searchCriteria)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 List<ExportRequirementData> findRequirementToExportFromFolder(List<Long> params)
           
 List<ExportRequirementData> findRequirementToExportFromLibrary(List<Long> libIds)
           
 
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

HibernateRequirementDao

public HibernateRequirementDao()
Method Detail

findAllByIdList

public List<Requirement> findAllByIdList(List<Long> requirementsIds)
Description copied from interface: RequirementDao
returns all the requirements matching the given ids.

Specified by:
findAllByIdList in interface EntityDao<Requirement>
Specified by:
findAllByIdList in interface RequirementDao
Overrides:
findAllByIdList in class HibernateEntityDao<Requirement>

findNamesInFolderStartingWith

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

findNamesInLibraryStartingWith

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

findAllBySearchCriteria

public List<RequirementLibraryNode> findAllBySearchCriteria(RequirementSearchCriteria searchCriteria)
Specified by:
findAllBySearchCriteria in interface RequirementDao

findAllBySearchCriteriaOrderByProject

public List<RequirementLibraryNode> findAllBySearchCriteriaOrderByProject(RequirementSearchCriteria searchCriteria)
Specified by:
findAllBySearchCriteriaOrderByProject in interface RequirementDao

findRequirementToExportFromFolder

public List<ExportRequirementData> findRequirementToExportFromFolder(List<Long> params)
Specified by:
findRequirementToExportFromFolder in interface RequirementDao

findRequirementToExportFromLibrary

public List<ExportRequirementData> findRequirementToExportFromLibrary(List<Long> libIds)
Specified by:
findRequirementToExportFromLibrary in interface RequirementDao


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