org.squashtest.tm.service.internal.repository
Interface ExecutionDao

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.execution.Execution>, GenericDao<org.squashtest.tm.domain.execution.Execution>
All Known Implementing Classes:
HibernateExecutionDao

public interface ExecutionDao
extends EntityDao<org.squashtest.tm.domain.execution.Execution>


Method Summary
 long countByTestCaseId(long testCaseId)
          Returns the count of executions which ran a given test case.
 long countExecutionSteps(long executionId)
           
 long countReady(long executionId)
           
 long countSuccess(long executionId)
           
 List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseId(long testCaseId, org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
          Returns the executions which ran the given test case using the given paging and sorting data
 List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseIdOrderByRunDate(long testCaseId, org.squashtest.tm.core.foundation.collection.Paging paging)
           
 List<org.squashtest.tm.domain.bugtracker.IssueDetector> findAllIssueDetectorsForExecution(Long execId)
           
 org.squashtest.tm.domain.execution.Execution findAndInit(long executionId)
           
 int findExecutionRank(long executionId)
           
 List<org.squashtest.tm.domain.execution.ExecutionStep> findExecutionSteps(long executionId)
           
 List<org.squashtest.tm.domain.execution.ExecutionStep> findStepsFiltered(Long executionId, org.squashtest.tm.core.foundation.collection.Paging filter)
           
 org.squashtest.tm.domain.execution.ExecutionStatusReport getStatusReport(long executionId)
           
 boolean wasNeverRan(Long executionId)
          Tells whether the execution is fresh new or not.
 
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
 

Method Detail

findExecutionSteps

List<org.squashtest.tm.domain.execution.ExecutionStep> findExecutionSteps(long executionId)

findAndInit

org.squashtest.tm.domain.execution.Execution findAndInit(long executionId)

findExecutionRank

int findExecutionRank(long executionId)

getStatusReport

org.squashtest.tm.domain.execution.ExecutionStatusReport getStatusReport(long executionId)

countSuccess

long countSuccess(long executionId)

countReady

long countReady(long executionId)

findStepsFiltered

List<org.squashtest.tm.domain.execution.ExecutionStep> findStepsFiltered(Long executionId,
                                                                         org.squashtest.tm.core.foundation.collection.Paging filter)

findAllIssueDetectorsForExecution

List<org.squashtest.tm.domain.bugtracker.IssueDetector> findAllIssueDetectorsForExecution(Long execId)

countExecutionSteps

long countExecutionSteps(long executionId)

findAllByTestCaseIdOrderByRunDate

List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseIdOrderByRunDate(long testCaseId,
                                                                                     org.squashtest.tm.core.foundation.collection.Paging paging)
Parameters:
testCaseId -
paging -
Returns:

findAllByTestCaseId

List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseId(long testCaseId,
                                                                       org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
Returns the executions which ran the given test case using the given paging and sorting data

Parameters:
testCaseId -
pas - non null paging and sorting data
Returns:
non null list of executions

countByTestCaseId

long countByTestCaseId(long testCaseId)
Returns the count of executions which ran a given test case.

Parameters:
testCaseId -
Returns:

wasNeverRan

boolean wasNeverRan(Long executionId)
Tells whether the execution is fresh new or not. Namely, that all its steps have a status READY.

Parameters:
executionId -
Returns:


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