public class TestsHibernateDao extends BambooHibernateObjectDao<TestClass> implements TestsDao
Constructor and Description |
---|
TestsHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countTestClasses()
Count all TestClass records
|
@NotNull Collection<? extends TestClass> |
findAll() |
@Nullable TestClass |
findById(long testClassId)
Find a specific testClass by id
|
@NotNull List<TestClass> |
getTestClassesForPlan(Plan plan,
int cutoffBuildNumber)
Retrieve all test classes attached to a specific plan
|
com.google.common.collect.Multimap<TestClass,TestCase> |
getTestClassesMapForPlan(Plan plan,
long masterJobId,
int cutoffBuildNumber)
Retrieve all test classes attached to a specific plan in a build later or equal to cutoffBuildNumber.
|
long |
scrollTestClassesForExport(@NotNull Consumer<TestClass> consumer)
Scroll through and execute function for each of TestClass records
Objects passed to function are not fully initialized.
|
@NotNull org.hibernate.ScrollableResults |
scrollThroughTestClassesForPlan(Plan plan)
Scroll through all test classes attached to a specific plan, alphabetically by test class name.
|
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
@Nullable public @Nullable TestClass findById(long testClassId)
TestsDao
@NotNull public @NotNull Collection<? extends TestClass> findAll()
@NotNull public @NotNull List<TestClass> getTestClassesForPlan(Plan plan, int cutoffBuildNumber)
getTestClassesForPlan
in interface TestsDao
plan
- the tests are attached tocutoffBuildNumber
- public com.google.common.collect.Multimap<TestClass,TestCase> getTestClassesMapForPlan(Plan plan, long masterJobId, int cutoffBuildNumber)
TestsDao
getTestClassesMapForPlan
in interface TestsDao
@NotNull public @NotNull org.hibernate.ScrollableResults scrollThroughTestClassesForPlan(Plan plan)
TestsDao
scrollThroughTestClassesForPlan
in interface TestsDao
plan
- the tests are attached topublic long countTestClasses()
TestsDao
countTestClasses
in interface TestsDao
public long scrollTestClassesForExport(@NotNull @NotNull Consumer<TestClass> consumer)
TestsDao
scrollTestClassesForExport
in interface TestsDao
consumer
- consumer to accept each of the TestClass recordsCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.