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

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao<org.squashtest.tm.domain.campaign.TestSuite>
          extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateTestSuiteDao
All Implemented Interfaces:
CustomTestSuiteDao, EntityDao<org.squashtest.tm.domain.campaign.TestSuite>, GenericDao<org.squashtest.tm.domain.campaign.TestSuite>

@Repository(value="CustomTestSuiteDao")
public class HibernateTestSuiteDao
extends HibernateEntityDao<org.squashtest.tm.domain.campaign.TestSuite>
implements CustomTestSuiteDao


Field Summary
 
Fields inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateTestSuiteDao()
           
 
Method Summary
 long countTestPlans(Long suiteId, org.squashtest.tm.core.foundation.collection.Filtering filtering)
           
 long countTestPlans(Long suiteId, org.squashtest.tm.core.foundation.collection.Filtering filtering, org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
           
 List<org.squashtest.tm.domain.campaign.TestSuite> findAllByIterationId(long iterationId)
           
 List<org.squashtest.tm.domain.execution.Execution> findAllExecutionByTestSuite(long testSuiteId)
           
 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findAllTestPlanItemsPaged(long testSuiteId, org.squashtest.tm.core.foundation.collection.Paging paging)
           
 List<IndexedIterationTestPlanItem> findIndexedTestPlan(long suiteId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering, org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
          Returns the paged list of [index, IterationTestPlanItem] wrapped in an IndexedIterationTestPlanItem
 List<IndexedIterationTestPlanItem> findIndexedTestPlan(long suiteId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering, org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
          Returns the paged list of [index, IterationTestPlanItem] wrapped in an IndexedIterationTestPlanItem
 List<org.squashtest.tm.domain.campaign.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
 long findProjectIdBySuiteId(long suiteId)
           
 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlan(long suiteId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering, org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
           
 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlanPaged(long testSuiteId, org.squashtest.tm.core.foundation.collection.Paging paging)
           
 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlanPartition(long testSuiteId, List<Long> testPlanItemIds)
           
 org.squashtest.tm.domain.campaign.TestPlanStatistics getTestSuiteStatistics(long testSuiteId)
          Will fill a TestPlanStatistics bean with infos taken from the test plan of the TestSuite matching the given id.
 org.squashtest.tm.domain.campaign.TestPlanStatistics getTestSuiteStatistics(long testSuiteId, String userLogin)
          Will fill a TestPlanStatistics bean with the infos taken from the test plan of the TestSuite matching the given id.
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao
collectFromMapList, collectFromMapList, collectFromMapListToSet, collectFromMapListToSet, findAll, findAllByIds, findById, findDescendantIds, findSorted, findSorted, getIdPropertyName
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
clearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, 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.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Constructor Detail

HibernateTestSuiteDao

public HibernateTestSuiteDao()
Method Detail

findAllByIterationId

public List<org.squashtest.tm.domain.campaign.TestSuite> findAllByIterationId(long iterationId)
Specified by:
findAllByIterationId in interface CustomTestSuiteDao

findLaunchableTestPlan

public List<org.squashtest.tm.domain.campaign.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<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlanPaged(long testSuiteId,
                                                                                       org.squashtest.tm.core.foundation.collection.Paging paging)

getTestSuiteStatistics

public org.squashtest.tm.domain.campaign.TestPlanStatistics getTestSuiteStatistics(long testSuiteId)
Description copied from interface: CustomTestSuiteDao
Will fill a TestPlanStatistics bean with infos taken from the test plan of the TestSuite matching the given id.

Specified by:
getTestSuiteStatistics in interface CustomTestSuiteDao
Parameters:
testSuiteId - : the id of the concerned TestSuite
Returns:
the filled TestPlanStatistics bean

getTestSuiteStatistics

public org.squashtest.tm.domain.campaign.TestPlanStatistics getTestSuiteStatistics(long testSuiteId,
                                                                                   String userLogin)
Description copied from interface: CustomTestSuiteDao
Will fill a TestPlanStatistics bean with the infos taken from the test plan of the TestSuite matching the given id. But the infos will be taken only from the IterationTestPlanItem that are assigned to the user matching the given login.

Specified by:
getTestSuiteStatistics in interface CustomTestSuiteDao
Parameters:
testSuiteId - : the id of the concerned TestSuite
userLogin - : the login of the user we want the IterationTestPlanItem to be assigned to
Returns:
the fielled TestPlanStatistics bean

findTestPlanPartition

public List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlanPartition(long testSuiteId,
                                                                                           List<Long> testPlanItemIds)
Specified by:
findTestPlanPartition in interface CustomTestSuiteDao

findAllExecutionByTestSuite

public List<org.squashtest.tm.domain.execution.Execution> findAllExecutionByTestSuite(long testSuiteId)
Specified by:
findAllExecutionByTestSuite in interface CustomTestSuiteDao

findAllTestPlanItemsPaged

public List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findAllTestPlanItemsPaged(long testSuiteId,
                                                                                               org.squashtest.tm.core.foundation.collection.Paging paging)
Specified by:
findAllTestPlanItemsPaged in interface CustomTestSuiteDao

findTestPlan

public List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlan(long suiteId,
                                                                                  org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
                                                                                  org.squashtest.tm.core.foundation.collection.Filtering filtering,
                                                                                  org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
Specified by:
findTestPlan in interface CustomTestSuiteDao

findIndexedTestPlan

public List<IndexedIterationTestPlanItem> findIndexedTestPlan(long suiteId,
                                                              org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting,
                                                              org.squashtest.tm.core.foundation.collection.Filtering filtering,
                                                              org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
Description copied from interface: CustomTestSuiteDao
Returns the paged list of [index, IterationTestPlanItem] wrapped in an IndexedIterationTestPlanItem

Specified by:
findIndexedTestPlan in interface CustomTestSuiteDao
Returns:

findIndexedTestPlan

public List<IndexedIterationTestPlanItem> findIndexedTestPlan(long suiteId,
                                                              org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
                                                              org.squashtest.tm.core.foundation.collection.Filtering filtering,
                                                              org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
Description copied from interface: CustomTestSuiteDao
Returns the paged list of [index, IterationTestPlanItem] wrapped in an IndexedIterationTestPlanItem

Specified by:
findIndexedTestPlan in interface CustomTestSuiteDao
Returns:

countTestPlans

public long countTestPlans(Long suiteId,
                           org.squashtest.tm.core.foundation.collection.Filtering filtering)
Specified by:
countTestPlans in interface CustomTestSuiteDao

findProjectIdBySuiteId

public long findProjectIdBySuiteId(long suiteId)
Specified by:
findProjectIdBySuiteId in interface CustomTestSuiteDao

countTestPlans

public long countTestPlans(Long suiteId,
                           org.squashtest.tm.core.foundation.collection.Filtering filtering,
                           org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
Specified by:
countTestPlans in interface CustomTestSuiteDao


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