|
||||||||||
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.TestResultsHibernateDao
public class TestResultsHibernateDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
TestResultsHibernateDao()
|
Method Summary | |
---|---|
long |
countTestCaseResultErrors()
Count all TestCaseResultErrors |
long |
countTestCaseResults()
Count all TestCaseResults |
long |
countTestClassResults()
Count all TestClassResults |
long |
countTestClassResults(PlanKey planKey)
Count TestClassResults for a Plan |
java.lang.Class |
getPersistentClass()
|
java.util.List<TestCaseResult> |
getQuarantinedTestCasesForBuildResult(BuildResultsSummary buildResultsSummary)
Provide a list of the quarantined tests for a build result |
java.util.List<TestCaseResult> |
getQuarantinedTestCasesForChainResult(ChainResultsSummary chainResultsSummary)
Provide a list of the quarantined tests for a chain result |
java.util.List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCase(TestCase testCase)
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case, for use by e.g. |
java.util.List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCaseAndBuilds(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults)
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case and contained within a specific span of build result summaries. |
BuildResultsSummary |
getSucceedingSinceBuildResultSummary(TestCase testCase)
Find the build in which the given test has been successful since. |
TestCaseResult |
getTestCaseResult(TestCase testCase,
long buildNumber)
Find a specific run of a testCase |
TestCaseResult |
getTestCaseResultById(long testCaseId)
Find a specific testCaseResult by id |
java.util.List<TestCaseResult> |
getTestCaseResults(TestCase testCase,
long buildNumber)
Find a specific run of a testCase |
java.util.List<TestCaseResult> |
getTestCaseResultsForTestCase(TestCase testCase)
Return a list of TestCaseResults for a given TestCase |
java.util.List<TestCaseResult> |
getTestCaseResultsForTestCaseAndBuilds(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults)
Return a list of TestCaseResults for a given TestCase constrained to a specific set of Build Result Summaries |
TestClassResult |
getTestClassResultById(long testClassId)
Find a specific testClassResult by id |
java.util.List<TestClassResult> |
getTestClassResults(PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummary |
java.util.List<TestCaseResult> |
getTestsForBuildResultByDeltaState(ResultsSummary summary,
TestDeltaState state,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a BuildResultSummary based on their delta state (e.g BROKEN, FIXED) |
java.util.List<TestCaseResult> |
getTestsForBuildResultByState(ResultsSummary summary,
TestState state)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS) |
java.util.List<TestCaseResult> |
getTestsForBuildResultByState(ResultsSummary summary,
TestState state,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS). |
java.util.List<TestCaseResult> |
getTestsForBuildResultSummary(BuildResultsSummary summary)
Retrieves a list of all testCaseResults for a BuildResultSummary |
java.util.List<TestCaseResult> |
getTestsForChainResultByDeltaStates(ChainResultsSummary summary,
TestDeltaState[] deltaStates,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a ChainResultSummary based on their delta state (e.g BROKEN, FIXED) |
java.util.List<TestCaseResult> |
getTestsForChainResultByState(ChainResultsSummary summary,
TestState state,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a ChainResultSummary based on their TestState |
int |
removeTestClassResultsByPlan(PlanKey planKey)
Remove all TestClassResult objects referenced by ResultsSummary objects identified by planKey |
long |
scrollTestCaseResultErrorsForExport(com.google.common.base.Function<TestCaseResultError,java.lang.Void> function)
Scroll through and execute function for each of TestCaseResultErrors Objects passed to function are not fully initialized. |
long |
scrollTestCaseResultsForExport(com.google.common.base.Function<TestCaseResult,java.lang.Void> function)
Scroll through and execute function for each of TestCaseResults Objects passed to function are not fully initialized. |
long |
scrollTestClassResultsForExport(com.google.common.base.Function<TestClassResult,java.lang.Void> function)
Scroll through and execute function for each of TestClassResults 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 TestResultsHibernateDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
public TestCaseResult getTestCaseResultById(long testCaseId)
TestResultsDao
getTestCaseResultById
in interface TestResultsDao
testCaseId
- of the test you want to find
public TestClassResult getTestClassResultById(long testClassId)
TestResultsDao
getTestClassResultById
in interface TestResultsDao
testClassId
- of the test you want to find
@NotNull public java.util.List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state)
TestResultsDao
getTestsForBuildResultByState
in interface TestResultsDao
summary
- the BuildResultsSaummary to get the tests forstate
- - The TestState to search for.
@NotNull public java.util.List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state, int firstResult, int maxCount)
TestResultsDao
getTestsForBuildResultByState
in interface TestResultsDao
summary
- the BuildResultsSummary to get the tests forstate
- the TestState to search for.firstResult
- the first record to be retrieved. Negative values are treated as 0.maxCount
- maximum amount of records to be retrieved. Values less than or equal to 0 are ignored.
@NotNull public java.util.List<TestCaseResult> getTestsForBuildResultByDeltaState(ResultsSummary summary, TestDeltaState state, int firstResult, int maxCount)
TestResultsDao
getTestsForBuildResultByDeltaState
in interface TestResultsDao
summary
- the BuildResultsSummary to get the tests forstate
- the TestDeltaState to search for.firstResult
- the first record to be retrieved. Negative values are treated as 0.maxCount
- maximum amount of records to be retrieved. Values less than or equal to 0 are ignored.
@NotNull public java.util.List<TestCaseResult> getTestsForChainResultByDeltaStates(ChainResultsSummary summary, TestDeltaState[] deltaStates, int firstResult, int maxCount)
TestResultsDao
getTestsForChainResultByDeltaStates
in interface TestResultsDao
firstResult
- - index of the first resultmaxCount
- - maximum amount of records returned
@NotNull public java.util.List<TestCaseResult> getTestsForChainResultByState(@NotNull ChainResultsSummary summary, @NotNull TestState state, int firstResult, int maxCount)
TestResultsDao
TestState
getTestsForChainResultByState
in interface TestResultsDao
@NotNull public java.util.List<TestCaseResult> getQuarantinedTestCasesForChainResult(@NotNull ChainResultsSummary chainResultsSummary)
TestResultsDao
getQuarantinedTestCasesForChainResult
in interface TestResultsDao
chainResultsSummary
- to search for the tests.
@NotNull public java.util.List<TestCaseResult> getQuarantinedTestCasesForBuildResult(@NotNull BuildResultsSummary buildResultsSummary)
TestResultsDao
getQuarantinedTestCasesForBuildResult
in interface TestResultsDao
buildResultsSummary
- to search for the tests.
public long countTestClassResults()
TestResultsDao
countTestClassResults
in interface TestResultsDao
public long countTestCaseResults()
TestResultsDao
countTestCaseResults
in interface TestResultsDao
public long countTestCaseResultErrors()
TestResultsDao
countTestCaseResultErrors
in interface TestResultsDao
public long countTestClassResults(@NotNull PlanKey planKey)
TestResultsDao
countTestClassResults
in interface TestResultsDao
planKey
- the Plan to count TestClassResults for
public long scrollTestClassResultsForExport(@NotNull com.google.common.base.Function<TestClassResult,java.lang.Void> function)
TestResultsDao
scrollTestClassResultsForExport
in interface TestResultsDao
function
- function to be executed on each of the TestClassResults
public long scrollTestCaseResultsForExport(@NotNull com.google.common.base.Function<TestCaseResult,java.lang.Void> function)
TestResultsDao
scrollTestCaseResultsForExport
in interface TestResultsDao
function
- function to be executed on each of the TestClassResults
public long scrollTestCaseResultErrorsForExport(@NotNull com.google.common.base.Function<TestCaseResultError,java.lang.Void> function)
TestResultsDao
scrollTestCaseResultErrorsForExport
in interface TestResultsDao
function
- function to be executed on each of the TestClassResults
@NotNull public java.util.List<TestClassResult> getTestClassResults(@NotNull PlanResultKey planResultKey)
TestResultsDao
getTestClassResults
in interface TestResultsDao
planResultKey
- key of the BuildResultsSummary to get the tests class results for
@NotNull public java.util.List<TestCaseResult> getTestsForBuildResultSummary(BuildResultsSummary summary)
TestResultsDao
getTestsForBuildResultSummary
in interface TestResultsDao
summary
- the BuildResultsSummary to get the tests for
@NotNull public java.util.List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCase(@NotNull TestCase testCase)
TestResultsDao
getResultStatisticsForTestCase
in interface TestResultsDao
testCase
- to find the results for
@NotNull public java.util.List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults)
TestResultsDao
getResultStatisticsForTestCaseAndBuilds
in interface TestResultsDao
testCase
- to find the results forbuildResults
- to contain search to (this list must not be empty)
@NotNull public java.util.List<TestCaseResult> getTestCaseResultsForTestCase(@NotNull TestCase testCase)
TestResultsDao
getTestCaseResultsForTestCase
in interface TestResultsDao
testCase
- to look for
@NotNull public java.util.List<TestCaseResult> getTestCaseResultsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults)
TestResultsDao
getTestCaseResultsForTestCaseAndBuilds
in interface TestResultsDao
testCase
- to look forbuildResults
- to contain search to
@Nullable public TestCaseResult getTestCaseResult(@NotNull TestCase testCase, long buildNumber)
TestResultsDao
getTestCaseResult
in interface TestResultsDao
testCase
- to look forbuildNumber
- of the build the run should have occurred in
@NotNull public java.util.List<TestCaseResult> getTestCaseResults(@NotNull TestCase testCase, long buildNumber)
TestResultsDao
getTestCaseResults
in interface TestResultsDao
testCase
- to look forbuildNumber
- of the build the run should have occurred in
public BuildResultsSummary getSucceedingSinceBuildResultSummary(TestCase testCase)
TestResultsDao
getSucceedingSinceBuildResultSummary
in interface TestResultsDao
testCase
- to search history for.
public int removeTestClassResultsByPlan(@NotNull PlanKey planKey)
TestResultsDao
TestClassResult
objects referenced by ResultsSummary
objects identified by planKey
removeTestClassResultsByPlan
in interface TestResultsDao
planKey
- plan identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |