org.squashtest.csp.tm.domain.report.common.hibernate
Class HibernateRequirementCoverageByTestsQuery
java.lang.Object
org.squashtest.csp.tm.domain.report.query.hibernate.HibernateReportQuery
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateRequirementCoverageByTestsQuery
public HibernateRequirementCoverageByTestsQuery()
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.