public class TestsHibernateDao extends BambooHibernateObjectDao<TestClass> implements TestsDao
Constructor and Description |
---|
TestsHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countTestClasses()
Count all TestClass records
|
Collection<? extends TestClass> |
findAll() |
TestClass |
findById(long testClassId)
Find a specific testClass by id
|
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(Consumer<TestClass> consumer)
Scroll through and execute function for each of TestClass records
Objects passed to function are not fully initialized.
|
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 TestClass findById(long testClassId)
TestsDao
@NotNull public Collection<? extends TestClass> findAll()
@NotNull public 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 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 Consumer<TestClass> consumer)
TestsDao
scrollTestClassesForExport
in interface TestsDao
consumer
- consumer to accept each of the TestClass recordsCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.