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

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

@Repository(value="CustomTestSuiteDao")
public class HibernateTestSuiteDao
extends HibernateEntityDao<TestSuite>
implements CustomTestSuiteDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateTestSuiteDao()
           
 
Method Summary
 List<TestSuite> findAllByIterationId(long iterationId)
           
 List<Execution> findAllExecutionByTestSuite(long testSuiteId)
           
 List<IterationTestPlanItem> findLaunchableTestPlan(long testSuiteId)
           return a list of ordered iteration_test_plan_items that are linked to a test case or have an execution
making it the launchable test plan of the test suite
 List<IterationTestPlanItem> findTestPlanPaged(long testSuiteId, org.squashtest.tm.core.foundation.collection.Paging paging)
           
 List<IterationTestPlanItem> findTestPlanPartition(long testSuiteId, List<Long> testPlanItemIds)
           
 TestSuiteStatistics getTestSuiteStatistics(long testSuiteId)
           
 
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
 

Constructor Detail

HibernateTestSuiteDao

public HibernateTestSuiteDao()
Method Detail

findAllByIterationId

public List<TestSuite> findAllByIterationId(long iterationId)
Specified by:
findAllByIterationId in interface CustomTestSuiteDao

findLaunchableTestPlan

public List<IterationTestPlanItem> findLaunchableTestPlan(long testSuiteId)
Description copied from interface: CustomTestSuiteDao

return a list of ordered iteration_test_plan_items that are linked to a test case or have an execution
making it the launchable test plan of the test suite

Specified by:
findLaunchableTestPlan in interface CustomTestSuiteDao
Returns:

findTestPlanPaged

public List<IterationTestPlanItem> findTestPlanPaged(long testSuiteId,
                                                     org.squashtest.tm.core.foundation.collection.Paging paging)

getTestSuiteStatistics

public TestSuiteStatistics getTestSuiteStatistics(long testSuiteId)
Specified by:
getTestSuiteStatistics in interface CustomTestSuiteDao

findTestPlanPartition

public List<IterationTestPlanItem> findTestPlanPartition(long testSuiteId,
                                                         List<Long> testPlanItemIds)
Specified by:
findTestPlanPartition in interface CustomTestSuiteDao

findAllExecutionByTestSuite

public List<Execution> findAllExecutionByTestSuite(long testSuiteId)
Specified by:
findAllExecutionByTestSuite in interface CustomTestSuiteDao


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