public class TestResultsHibernateDao extends BambooHibernateObjectDao<TestClassResult> implements TestResultsDao
Constructor and Description |
---|
TestResultsHibernateDao(BambooTransactionHibernateTemplate transactionTemplate) |
Modifier and Type | Method and Description |
---|---|
long |
countTestClassResults()
Count all TestClassResults
|
long |
countTestClassResults(PlanKey planKey)
Count TestClassResults for a Plan
|
Collection<? extends TestClassResult> |
findAll() |
TestClassResult |
findById(long testClassId)
Find a specific testClassResult by id
|
List<TestClassResult> |
getTestClassResults(PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummary
|
int |
removeTestClassResultsByPlan(PlanKey planKey)
Remove all
TestClassResult objects referenced by ResultsSummary objects identified by planKey |
long |
scrollTestClassResultsForExport(Consumer<TestClassResult> consumer)
Scroll through and execute function for each of TestClassResults
Objects passed to function are not fully initialized.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public TestResultsHibernateDao(BambooTransactionHibernateTemplate transactionTemplate)
public TestClassResult findById(long testClassId)
TestResultsDao
findById
in interface TestResultsDao
testClassId
- of the test you want to find@NotNull public Collection<? extends TestClassResult> findAll()
findAll
in interface TestResultsDao
public long countTestClassResults()
TestResultsDao
countTestClassResults
in interface TestResultsDao
public long countTestClassResults(@NotNull PlanKey planKey)
TestResultsDao
countTestClassResults
in interface TestResultsDao
planKey
- the Plan to count TestClassResults forpublic long scrollTestClassResultsForExport(@NotNull Consumer<TestClassResult> consumer)
TestResultsDao
scrollTestClassResultsForExport
in interface TestResultsDao
consumer
- consumer to accept each of the TestClassResults@NotNull public List<TestClassResult> getTestClassResults(@NotNull PlanResultKey planResultKey)
TestResultsDao
getTestClassResults
in interface TestResultsDao
planResultKey
- key of the BuildResultsSummary to get the tests class results forpublic int removeTestClassResultsByPlan(@NotNull PlanKey planKey)
TestResultsDao
TestClassResult
objects referenced by ResultsSummary
objects identified by planKeyremoveTestClassResultsByPlan
in interface TestResultsDao
planKey
- plan identifierCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.