Interface TestResultsDao
-
- All Superinterfaces:
BambooObjectDao<TestClassResult>
- All Known Implementing Classes:
TestResultsHibernateDao
public interface TestResultsDao extends BambooObjectDao<TestClassResult>
Dao for retrieving and manipulating Test Results (e.g TestClassResult, TestCaseResult)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
countTestClassResults()
Count all TestClassResultslong
countTestClassResults(@NotNull PlanKey planKey)
Count TestClassResults for a Plan@NotNull Collection<? extends TestClassResult>
findAll()
TestClassResult
findById(long testClassResultId)
Find a specific testClassResult by id@NotNull List<TestClassResult>
getTestClassResults(@NotNull PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummaryint
removeTestClassResultsByPlan(@NotNull PlanKey planKey)
Remove allTestClassResult
objects referenced byResultsSummary
objects identified by planKeylong
scrollTestClassResultsForExport(@NotNull Consumer<TestClassResult> consumer)
Scroll through and execute function for each of TestClassResults Objects passed to function are not fully initialized.-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
findById
TestClassResult findById(long testClassResultId)
Find a specific testClassResult by id- Parameters:
testClassResultId
- of the test you want to find- Returns:
- the testClassResult corresponding to the id provided.
-
findAll
@NotNull @NotNull Collection<? extends TestClassResult> findAll()
-
countTestClassResults
long countTestClassResults()
Count all TestClassResults- Returns:
- number of TestClassResults
-
countTestClassResults
long countTestClassResults(@NotNull @NotNull PlanKey planKey)
Count TestClassResults for a Plan- Parameters:
planKey
- the Plan to count TestClassResults for- Returns:
- number of TestClassResults
-
scrollTestClassResultsForExport
long scrollTestClassResultsForExport(@NotNull @NotNull Consumer<TestClassResult> consumer)
Scroll through and execute function for each of TestClassResults Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.- Parameters:
consumer
- consumer to accept each of the TestClassResults- Returns:
- number of traversed rows
-
getTestClassResults
@NotNull @NotNull List<TestClassResult> getTestClassResults(@NotNull @NotNull PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummary- Parameters:
planResultKey
- key of the BuildResultsSummary to get the tests class results for- Returns:
- a list of all testClassResults for the BuildResultSummary
-
removeTestClassResultsByPlan
int removeTestClassResultsByPlan(@NotNull @NotNull PlanKey planKey)
Remove allTestClassResult
objects referenced byResultsSummary
objects identified by planKey- Parameters:
planKey
- plan identifier- Returns:
- number of removed objects
-
-