Class TestResultsHibernateDao

java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
All Implemented Interfaces:
BambooObjectDao<TestClassResult>, TestResultsDao, org.springframework.beans.factory.InitializingBean

public class TestResultsHibernateDao extends BambooHibernateObjectDao<TestClassResult> implements TestResultsDao
  • Constructor Details

  • Method Details

    • findById

      public TestClassResult findById(long testClassId)
      Description copied from interface: TestResultsDao
      Find a specific testClassResult by id
      Specified by:
      findById in interface TestResultsDao
      Parameters:
      testClassId - of the test you want to find
      Returns:
      the testClassResult corresponding to the id provided.
    • findAll

      @NotNull public @NotNull Collection<? extends TestClassResult> findAll()
      Specified by:
      findAll in interface TestResultsDao
    • countTestClassResults

      public long countTestClassResults()
      Description copied from interface: TestResultsDao
      Count all TestClassResults
      Specified by:
      countTestClassResults in interface TestResultsDao
      Returns:
      number of TestClassResults
    • countTestClassResults

      public long countTestClassResults(@NotNull @NotNull PlanKey planKey)
      Description copied from interface: TestResultsDao
      Count TestClassResults for a Plan
      Specified by:
      countTestClassResults in interface TestResultsDao
      Parameters:
      planKey - the Plan to count TestClassResults for
      Returns:
      number of TestClassResults
    • scrollTestClassResultsForExport

      public long scrollTestClassResultsForExport(@NotNull @NotNull Consumer<TestClassResult> consumer)
      Description copied from interface: TestResultsDao
      Scroll through and execute function for each of TestClassResults Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.
      Specified by:
      scrollTestClassResultsForExport in interface TestResultsDao
      Parameters:
      consumer - consumer to accept each of the TestClassResults
      Returns:
      number of traversed rows
    • getTestClassResults

      @NotNull public @NotNull List<TestClassResult> getTestClassResults(@NotNull @NotNull PlanResultKey planResultKey)
      Description copied from interface: TestResultsDao
      Retrieves a list of all testClassResults for a BuildResultSummary
      Specified by:
      getTestClassResults in interface TestResultsDao
      Parameters:
      planResultKey - key of the BuildResultsSummary to get the tests class results for
      Returns:
      a list of all testClassResults for the BuildResultSummary
    • removeTestClassResultsByPlan

      public int removeTestClassResultsByPlan(@NotNull @NotNull PlanKey planKey)
      Description copied from interface: TestResultsDao
      Remove all TestClassResult objects referenced by ResultsSummary objects identified by planKey
      Specified by:
      removeTestClassResultsByPlan in interface TestResultsDao
      Parameters:
      planKey - plan identifier
      Returns:
      number of removed objects