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 |
int |
removeTestClassResultsByResult(long buildResultSummaryId)
Efficiently removes
TestClassResult objects referenced by ResultsSummary object |
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, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAllpublic TestResultsHibernateDao(BambooTransactionHibernateTemplate transactionTemplate)
public TestClassResult findById(long testClassId)
TestResultsDaofindById in interface TestResultsDaotestClassId - of the test you want to find@NotNull public Collection<? extends TestClassResult> findAll()
findAll in interface TestResultsDaopublic long countTestClassResults()
TestResultsDaocountTestClassResults in interface TestResultsDaopublic long countTestClassResults(@NotNull
PlanKey planKey)
TestResultsDaocountTestClassResults in interface TestResultsDaoplanKey - the Plan to count TestClassResults forpublic long scrollTestClassResultsForExport(@NotNull
Consumer<TestClassResult> consumer)
TestResultsDaoscrollTestClassResultsForExport in interface TestResultsDaoconsumer - consumer to accept each of the TestClassResults@NotNull public List<TestClassResult> getTestClassResults(@NotNull PlanResultKey planResultKey)
TestResultsDaogetTestClassResults in interface TestResultsDaoplanResultKey - key of the BuildResultsSummary to get the tests class results forpublic int removeTestClassResultsByPlan(@NotNull
PlanKey planKey)
TestResultsDaoTestClassResult objects referenced by ResultsSummary objects identified by planKeyremoveTestClassResultsByPlan in interface TestResultsDaoplanKey - plan identifierpublic int removeTestClassResultsByResult(long buildResultSummaryId)
TestResultsDaoTestClassResult objects referenced by ResultsSummary objectremoveTestClassResultsByResult in interface TestResultsDaoCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.