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

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

@Repository
public class HibernateProjectDao
extends HibernateEntityDao<Project>
implements ProjectDao


Nested Class Summary
 
Nested classes/interfaces inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
HibernateEntityDao.ContainerIdNameStartParameterCallback
 
Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateProjectDao()
           
 
Method Summary
 long countNonFoldersInProject(long projectId)
           
 long countProjects()
           
 List<Project> findAllOrderedByName()
           
 List<TestAutomationProject> findBoundTestAutomationProjects(long id)
           
 List<ProjectFilter> findProjectFiltersContainingProject(Long projectId)
           
 List<Project> findSortedProjects(CollectionSorting filter)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAll, findAllByIds, findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeEntityNamedQuery, 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
findAll, findAllByIds, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateProjectDao

public HibernateProjectDao()
Method Detail

findAllOrderedByName

public List<Project> findAllOrderedByName()
Specified by:
findAllOrderedByName in interface ProjectDao

findSortedProjects

@PostFilter(value="hasPermission(filterObject, \'MANAGEMENT\') or  hasRole(\'ROLE_ADMIN\')")
public List<Project> findSortedProjects(CollectionSorting filter)
Specified by:
findSortedProjects in interface ProjectDao

countProjects

public long countProjects()
Specified by:
countProjects in interface ProjectDao

countNonFoldersInProject

public long countNonFoldersInProject(long projectId)
Specified by:
countNonFoldersInProject in interface ProjectDao

findProjectFiltersContainingProject

public List<ProjectFilter> findProjectFiltersContainingProject(Long projectId)
Specified by:
findProjectFiltersContainingProject in interface ProjectDao

findBoundTestAutomationProjects

public List<TestAutomationProject> findBoundTestAutomationProjects(long id)
Specified by:
findBoundTestAutomationProjects in interface ProjectDao


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.