org.squashtest.tm.service.internal.repository.hibernate
Class HibernateExecutionDao
java.lang.Object
org.squashtest.tm.service.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao<org.squashtest.tm.domain.execution.Execution>
org.squashtest.tm.service.internal.repository.hibernate.HibernateExecutionDao
- All Implemented Interfaces:
- EntityDao<org.squashtest.tm.domain.execution.Execution>, ExecutionDao, GenericDao<org.squashtest.tm.domain.execution.Execution>
@Repository
public class HibernateExecutionDao
- extends HibernateEntityDao<org.squashtest.tm.domain.execution.Execution>
- implements ExecutionDao
| 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 |
HibernateExecutionDao
public HibernateExecutionDao()
findExecutionSteps
public List<org.squashtest.tm.domain.execution.ExecutionStep> findExecutionSteps(long executionId)
- Specified by:
findExecutionSteps in interface ExecutionDao
findAndInit
public org.squashtest.tm.domain.execution.Execution findAndInit(long executionId)
- Specified by:
findAndInit in interface ExecutionDao
findExecutionRank
public int findExecutionRank(long executionId)
- Specified by:
findExecutionRank in interface ExecutionDao
getStatusReport
public org.squashtest.tm.domain.execution.ExecutionStatusReport getStatusReport(long executionId)
- Specified by:
getStatusReport in interface ExecutionDao
countSuccess
public long countSuccess(long executionId)
- Specified by:
countSuccess in interface ExecutionDao
countReady
public long countReady(long executionId)
- Specified by:
countReady in interface ExecutionDao
findStepsFiltered
public List<org.squashtest.tm.domain.execution.ExecutionStep> findStepsFiltered(Long executionId,
org.squashtest.tm.core.foundation.collection.Paging filter)
- Specified by:
findStepsFiltered in interface ExecutionDao
findAllIssueDetectorsForExecution
public List<org.squashtest.tm.domain.bugtracker.IssueDetector> findAllIssueDetectorsForExecution(Long execId)
- Specified by:
findAllIssueDetectorsForExecution in interface ExecutionDao
countExecutionSteps
public long countExecutionSteps(long executionId)
- (non-Javadoc)
- Specified by:
countExecutionSteps in interface ExecutionDao
- See Also:
ExecutionDao.countExecutionSteps(long)
findAllByTestCaseIdOrderByRunDate
public List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseIdOrderByRunDate(long testCaseId,
org.squashtest.tm.core.foundation.collection.Paging paging)
- Specified by:
findAllByTestCaseIdOrderByRunDate in interface ExecutionDao
- Returns:
- See Also:
org.squashtest.tm.service.internal.repository.ExecutionDao#findAllByTestCaseIdOrderByRunDate(long, org.squashtest.csp.core.infrastructure.collection.Paging)
findAllByTestCaseId
public List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseId(long testCaseId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
- Description copied from interface:
ExecutionDao
- Returns the executions which ran the given test case using the given paging and sorting data
- Specified by:
findAllByTestCaseId in interface ExecutionDao
pas - non null paging and sorting data
- Returns:
- non null list of executions
countByTestCaseId
public long countByTestCaseId(long testCaseId)
- Description copied from interface:
ExecutionDao
- Returns the count of executions which ran a given test case.
- Specified by:
countByTestCaseId in interface ExecutionDao
- Returns:
wasNeverRan
public boolean wasNeverRan(Long executionId)
- Description copied from interface:
ExecutionDao
- Tells whether the execution is fresh new or not. Namely, that all its steps have a status
READY.
- Specified by:
wasNeverRan in interface ExecutionDao
- Returns:
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.