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
|
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, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, 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 TestsDaoplan - the tests are attached tocutoffBuildNumber - @NotNull public org.hibernate.ScrollableResults scrollThroughTestClassesForPlan(Plan plan)
TestsDaoscrollThroughTestClassesForPlan in interface TestsDaoplan - the tests are attached topublic long countTestClasses()
TestsDaocountTestClasses in interface TestsDaopublic long scrollTestClassesForExport(@NotNull
Consumer<TestClass> consumer)
TestsDaoscrollTestClassesForExport in interface TestsDaoconsumer - consumer to accept each of the TestClass recordsCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.