org.squashtest.csp.tm.domain.report.common.hibernate
Class HibernateRequirementCoverageByTestsQuery

java.lang.Object
  extended by org.squashtest.csp.tm.domain.report.query.hibernate.HibernateReportQuery
      extended by org.squashtest.csp.tm.domain.report.common.hibernate.HibernateRequirementCoverageByTestsQuery
All Implemented Interfaces:
ReportQuery

public class HibernateRequirementCoverageByTestsQuery
extends HibernateReportQuery

Manage hibernate query to get the requirements covered by a given test-case

Author:
bsiri

Field Summary
 
Fields inherited from class org.squashtest.csp.tm.domain.report.query.hibernate.HibernateReportQuery
criterions
 
Constructor Summary
HibernateRequirementCoverageByTestsQuery()
           
 
Method Summary
 List<?> convertToDto(List<?> rawData)
          This method will convert the raw results from Hibernate into a suitable list of Dto object that the view will process in turn.
 org.hibernate.criterion.DetachedCriteria createHibernateQuery()
           
 List<?> doInSession(org.hibernate.Session session)
          if you really need it.
protected  List<Object[]> filterUnwantedDataOut(List<Object[]> list)
           
 
Methods inherited from class org.squashtest.csp.tm.domain.report.query.hibernate.HibernateReportQuery
addCriterion, getCriterionNames, getCriterions, getDataFilteringService, getFlavor, getValue, isCriterionExists, setCriterion, SetDataFilteringService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateRequirementCoverageByTestsQuery

public HibernateRequirementCoverageByTestsQuery()
Method Detail

createHibernateQuery

public org.hibernate.criterion.DetachedCriteria createHibernateQuery()
Specified by:
createHibernateQuery in class HibernateReportQuery
Returns:
a DetachedCriteria to run in a Hibernate Dao, or null.

doInSession

public List<?> doInSession(org.hibernate.Session session)
Description copied from class: HibernateReportQuery
if you really need it. Will be executed if createHibernateQuery() returned null;

Specified by:
doInSession in class HibernateReportQuery
Returns:

convertToDto

public List<?> convertToDto(List<?> rawData)
Description copied from class: HibernateReportQuery
This method will convert the raw results from Hibernate into a suitable list of Dto object that the view will process in turn. Should also use the DataFilteringService if need be.

Specified by:
convertToDto in class HibernateReportQuery
Parameters:
rawData - a List of Hibernate entities.
Returns:
a List of Dtos.

filterUnwantedDataOut

protected List<Object[]> filterUnwantedDataOut(List<Object[]> list)


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