net.thucydides.core.statistics.dao
Class HibernateTestOutcomeHistoryDAO

Package class diagram package HibernateTestOutcomeHistoryDAO
java.lang.Object
  extended by net.thucydides.core.statistics.dao.HibernateTestOutcomeHistoryDAO
All Implemented Interfaces:
TestOutcomeHistoryDAO

public class HibernateTestOutcomeHistoryDAO
extends Object
implements TestOutcomeHistoryDAO


Field Summary
protected  javax.persistence.EntityManagerFactory entityManagerFactory
           
 
Constructor Summary
HibernateTestOutcomeHistoryDAO(javax.persistence.EntityManagerFactory entityManagerFactory, EnvironmentVariables environmentVariables, TagProviderService tagProviderService, SystemClock clock)
           
 
Method Summary
 Long countTestRunsByTag(String tag)
           
 Long countTestRunsByTagAndResult(String tag, TestResult result)
           
 Long countTestRunsByTagType(String tagType)
           
 Long countTestRunsByTagTypeAndResult(String tagType, TestResult result)
           
 Long countTestRunsByTitle(String title)
           
 Long countTestRunsByTitleAndResult(String title, TestResult result)
           
 void deleteAll()
           
 List<TestRun> findAll()
           
 List<TestRunTag> findAllTags()
           
 List<String> findAllTagTypes()
           
 List<TestRunTag> findTagsMatching(TestRunTag tag)
           
 List<TestRun> findTestRunsByTitle(String title)
           
 List<TestRunTag> getLatestTagsForTestsWithTag(String tag)
           
 List<TestRunTag> getLatestTagsForTestsWithTagType(String tagType)
           
 List<TestRunTag> getLatestTagsForTestWithTitleByTitle(String title)
           
 List<TestResult> getResultsForTestsWithTag(String tag)
           
 List<TestResult> getResultsForTestsWithTagType(String tagType)
           
 List<TestResult> getResultsTestWithTitle(String title)
           
 void storeTestOutcome(TestOutcome testOutcome)
           
 void storeTestOutcomes(List<TestOutcome> testOutcomes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityManagerFactory

protected javax.persistence.EntityManagerFactory entityManagerFactory
Constructor Detail

HibernateTestOutcomeHistoryDAO

@Inject
public HibernateTestOutcomeHistoryDAO(javax.persistence.EntityManagerFactory entityManagerFactory,
                                             EnvironmentVariables environmentVariables,
                                             TagProviderService tagProviderService,
                                             SystemClock clock)
Method Detail

findAll

public List<TestRun> findAll()
Specified by:
findAll in interface TestOutcomeHistoryDAO

findTestRunsByTitle

public List<TestRun> findTestRunsByTitle(String title)
Specified by:
findTestRunsByTitle in interface TestOutcomeHistoryDAO

storeTestOutcomes

public void storeTestOutcomes(List<TestOutcome> testOutcomes)
Specified by:
storeTestOutcomes in interface TestOutcomeHistoryDAO

storeTestOutcome

public void storeTestOutcome(TestOutcome testOutcome)
Specified by:
storeTestOutcome in interface TestOutcomeHistoryDAO

findTagsMatching

public List<TestRunTag> findTagsMatching(TestRunTag tag)
Specified by:
findTagsMatching in interface TestOutcomeHistoryDAO

deleteAll

public void deleteAll()
Specified by:
deleteAll in interface TestOutcomeHistoryDAO

countTestRunsByTitle

public Long countTestRunsByTitle(String title)
Specified by:
countTestRunsByTitle in interface TestOutcomeHistoryDAO

countTestRunsByTitleAndResult

public Long countTestRunsByTitleAndResult(String title,
                                          TestResult result)
Specified by:
countTestRunsByTitleAndResult in interface TestOutcomeHistoryDAO

findAllTags

public List<TestRunTag> findAllTags()
Specified by:
findAllTags in interface TestOutcomeHistoryDAO

getLatestTagsForTestWithTitleByTitle

public List<TestRunTag> getLatestTagsForTestWithTitleByTitle(String title)
Specified by:
getLatestTagsForTestWithTitleByTitle in interface TestOutcomeHistoryDAO

getResultsTestWithTitle

public List<TestResult> getResultsTestWithTitle(String title)
Specified by:
getResultsTestWithTitle in interface TestOutcomeHistoryDAO

getResultsForTestsWithTag

public List<TestResult> getResultsForTestsWithTag(String tag)
Specified by:
getResultsForTestsWithTag in interface TestOutcomeHistoryDAO

getResultsForTestsWithTagType

public List<TestResult> getResultsForTestsWithTagType(String tagType)
Specified by:
getResultsForTestsWithTagType in interface TestOutcomeHistoryDAO

countTestRunsByTag

public Long countTestRunsByTag(String tag)
Specified by:
countTestRunsByTag in interface TestOutcomeHistoryDAO

countTestRunsByTagType

public Long countTestRunsByTagType(String tagType)
Specified by:
countTestRunsByTagType in interface TestOutcomeHistoryDAO

countTestRunsByTagAndResult

public Long countTestRunsByTagAndResult(String tag,
                                        TestResult result)
Specified by:
countTestRunsByTagAndResult in interface TestOutcomeHistoryDAO

countTestRunsByTagTypeAndResult

public Long countTestRunsByTagTypeAndResult(String tagType,
                                            TestResult result)
Specified by:
countTestRunsByTagTypeAndResult in interface TestOutcomeHistoryDAO

getLatestTagsForTestsWithTag

public List<TestRunTag> getLatestTagsForTestsWithTag(String tag)
Specified by:
getLatestTagsForTestsWithTag in interface TestOutcomeHistoryDAO

getLatestTagsForTestsWithTagType

public List<TestRunTag> getLatestTagsForTestsWithTagType(String tagType)
Specified by:
getLatestTagsForTestsWithTagType in interface TestOutcomeHistoryDAO

findAllTagTypes

public List<String> findAllTagTypes()
Specified by:
findAllTagTypes in interface TestOutcomeHistoryDAO


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.