Interface TestResultsDao

    • Method Detail

      • findById

        TestClassResult findById​(long testClassResultId)
        Find a specific testClassResult by id
        Parameters:
        testClassResultId - of the test you want to find
        Returns:
        the testClassResult corresponding to the id provided.
      • countTestClassResults

        long countTestClassResults()
        Count all TestClassResults
        Returns:
        number of TestClassResults
      • countTestClassResults

        long countTestClassResults​(@NotNull
                                   @NotNull PlanKey planKey)
        Count TestClassResults for a Plan
        Parameters:
        planKey - the Plan to count TestClassResults for
        Returns:
        number of TestClassResults
      • scrollTestClassResultsForExport

        long scrollTestClassResultsForExport​(@NotNull
                                             @NotNull Consumer<TestClassResult> consumer)
        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.
        Parameters:
        consumer - consumer to accept each of the TestClassResults
        Returns:
        number of traversed rows
      • getTestClassResults

        @NotNull
        @NotNull List<TestClassResult> getTestClassResults​(@NotNull
                                                           @NotNull PlanResultKey planResultKey)
        Retrieves a list of all testClassResults for a BuildResultSummary
        Parameters:
        planResultKey - key of the BuildResultsSummary to get the tests class results for
        Returns:
        a list of all testClassResults for the BuildResultSummary
      • removeTestClassResultsByPlan

        int removeTestClassResultsByPlan​(@NotNull
                                         @NotNull PlanKey planKey)
        Remove all TestClassResult objects referenced by ResultsSummary objects identified by planKey
        Parameters:
        planKey - plan identifier
        Returns:
        number of removed objects