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 TypeMethodDescriptionlongCount all TestClassResultslongcountTestClassResults(@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 BuildResultSummaryintremoveTestClassResultsByPlan(@NotNull PlanKey planKey) Remove allTestClassResultobjects referenced byResultsSummaryobjects identified by planKeylongscrollTestClassResultsForExport(@NotNull Consumer<TestClassResult> consumer) Scroll through and execute function for each of TestClassResults Objects passed to function are not fully initialized.
-
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 allTestClassResultobjects referenced byResultsSummaryobjects identified by planKey- Parameters:
planKey- plan identifier- Returns:
- number of removed objects
-