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)
Retrieve all test classes attached to a specific plan
|
long |
scrollTestClassesForExport(com.google.common.base.Function<TestClass,Void> function)
Scroll through and execute function for each of TestClass records
Objects passed to function are not fully initialized.
|
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
@Nullable public TestClass findById(long testClassId)
TestsDao
@NotNull public Collection<? extends TestClass> findAll()
@NotNull public List<TestClass> getTestClassesForPlan(Plan plan)
getTestClassesForPlan
in interface TestsDao
plan
- the tests are attached topublic long countTestClasses()
TestsDao
countTestClasses
in interface TestsDao
public long scrollTestClassesForExport(@NotNull com.google.common.base.Function<TestClass,Void> function)
TestsDao
scrollTestClassesForExport
in interface TestsDao
function
- function to be executed on each of the TestClass recordsCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.