|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.bamboo.persistence.BambooHibernateObjectDao com.atlassian.bamboo.resultsummary.tests.TestsHibernateDao
public class TestsHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
TestsHibernateDao()
|
Method Summary | |
---|---|
long |
countTestCases()
Count all TestCase records |
long |
countTestClasses()
Count all TestClass records |
java.util.List<Pair<TestCaseResult,java.lang.Integer>> |
getLastNFailingResultsForTestCase(TestCase testCase,
int number)
Retrieve the last n failing testResults for this given test case, latest first. |
java.util.List<Pair<TestCaseResult,java.lang.Integer>> |
getLastNFailingResultsForTestCaseAndBuildResults(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults,
int number)
Retrieve the last n failing testResults for this given test case, but only those that occurred within the provided build results. |
java.util.List<TestCase> |
getLongestRunningTestCasesForPlan(Plan plan)
Provide a list of the top ten longest running tests for a plan, based on the duration of the TestCase's TestCaseResults Finds top 10 results in order (longest first) |
java.util.List<Pair<java.lang.Long,java.lang.Float>> |
getLongestToFixTestCasesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Retrieve a list of the test cases that have taken the longest amount of time to fix. |
java.util.List<Pair<java.lang.Long,java.lang.Float>> |
getLongestToFixTestCasesForPlan(Plan plan)
Retrieve a list of the test cases that have taken the longest amount of time to fix. |
java.util.List<Pair<java.lang.Long,java.lang.Integer>> |
getMostFailingTestCasesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Provide a list of the top 10 most failing test cases for a plan. |
java.util.List<Pair<java.lang.Long,java.lang.Integer>> |
getMostFailingTestCasesForPlan(Plan plan)
Provide a list of the top 10 most failing test cases for a plan. |
java.lang.Class |
getPersistentClass()
|
TestCase |
getTestCaseById(long testCaseId)
Find a specific testCase by id |
TestClass |
getTestClassById(long testClassId)
Find a specific testClass by id |
java.util.List<TestClass> |
getTestClassesForPlan(Plan plan)
Retrieve all test classes attached to a specific plab |
long |
scrollTestCasesForExport(com.google.common.base.Function<TestCase,java.lang.Void> function)
Scroll through and execute function for each of TestCase records Objects passed to function are not fully initialized. |
long |
scrollTestClassesForExport(com.google.common.base.Function<TestClass,java.lang.Void> function)
Scroll through and execute function for each of TestClass records Objects passed to function are not fully initialized. |
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
---|
executeCountQuery, executeReturnLong, findById, findById |
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
---|
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
---|
public TestsHibernateDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@Nullable public TestCase getTestCaseById(long testCaseId)
TestsDao
getTestCaseById
in interface TestsDao
testCaseId
- of the test case you want to find
@Nullable public TestClass getTestClassById(long testClassId)
TestsDao
getTestClassById
in interface TestsDao
testClassId
- of the test class you want to find
@NotNull public java.util.List<TestClass> getTestClassesForPlan(Plan plan)
getTestClassesForPlan
in interface TestsDao
plan
- the tests are attached to
@NotNull public java.util.List<TestCase> getLongestRunningTestCasesForPlan(@NotNull Plan plan)
TestsDao
getLongestRunningTestCasesForPlan
in interface TestsDao
plan
- to search in for the tests.
@NotNull public java.util.List<Pair<java.lang.Long,java.lang.Integer>> getMostFailingTestCasesForPlan(@NotNull Plan plan)
TestsDao
getMostFailingTestCasesForPlan
in interface TestsDao
plan
- to search for the tests
@NotNull public java.util.List<Pair<java.lang.Long,java.lang.Integer>> getMostFailingTestCasesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
TestsDao
getMostFailingTestCasesForBuildResults
in interface TestsDao
buildResults
- to search in for the tests.
@NotNull public java.util.List<Pair<java.lang.Long,java.lang.Float>> getLongestToFixTestCasesForPlan(@NotNull Plan plan)
TestsDao
getLongestToFixTestCasesForPlan
in interface TestsDao
plan
- to search for results in
@NotNull public java.util.List<Pair<java.lang.Long,java.lang.Float>> getLongestToFixTestCasesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
TestsDao
getLongestToFixTestCasesForBuildResults
in interface TestsDao
buildResults
- to search in for the tests.
@NotNull public java.util.List<Pair<TestCaseResult,java.lang.Integer>> getLastNFailingResultsForTestCase(@NotNull TestCase testCase, int number)
TestsDao
getLastNFailingResultsForTestCase
in interface TestsDao
testCase
- to look for the results for.number
- of results to retrieve
@NotNull public java.util.List<Pair<TestCaseResult,java.lang.Integer>> getLastNFailingResultsForTestCaseAndBuildResults(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults, int number)
TestsDao
getLastNFailingResultsForTestCaseAndBuildResults
in interface TestsDao
testCase
- to look for the results for.buildResults
- to search in for the tests.number
- of results to retrieve
public long countTestClasses()
TestsDao
countTestClasses
in interface TestsDao
public long scrollTestClassesForExport(@NotNull com.google.common.base.Function<TestClass,java.lang.Void> function)
TestsDao
scrollTestClassesForExport
in interface TestsDao
function
- function to be executed on each of the TestClass records
public long countTestCases()
TestsDao
countTestCases
in interface TestsDao
public long scrollTestCasesForExport(@NotNull com.google.common.base.Function<TestCase,java.lang.Void> function)
TestsDao
scrollTestCasesForExport
in interface TestsDao
function
- function to be executed on each of the TestCase records
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |