Interface TestResultsDao
- All Superinterfaces:
BambooObjectDao<TestClassResult>
- All Known Implementing Classes:
TestResultsHibernateDao
Dao for retrieving and manipulating Test Results (e.g TestClassResult, TestCaseResult)
-
Method Summary
Modifier and TypeMethodDescriptionlong
Count all TestClassResultslong
countTestClassResults
(@NotNull PlanKey planKey) Count TestClassResults for a Plan@NotNull Collection<? extends TestClassResult>
findAll()
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 Details
-
findById
Find a specific testClassResult by id- Parameters:
testClassResultId
- of the test you want to find- Returns:
- the testClassResult corresponding to the id provided.
-
findAll
-
countTestClassResults
long countTestClassResults()Count all TestClassResults- Returns:
- number of TestClassResults
-
countTestClassResults
Count TestClassResults for a Plan- Parameters:
planKey
- the Plan to count TestClassResults for- Returns:
- number of TestClassResults
-
scrollTestClassResultsForExport
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
Remove allTestClassResult
objects referenced byResultsSummary
objects identified by planKey- Parameters:
planKey
- plan identifier- Returns:
- number of removed objects
-