Interface VariableContextBaselineDao

    • Method Detail

      • findByDeploymentResultId

        @Nullable
        @Nullable VariableContextBaseline findByDeploymentResultId​(long deploymentResultId)
      • resolveVariableContextBaseline

        @Nullable
        @Nullable VariableContextBaseline resolveVariableContextBaseline​(@NotNull
                                                                         @NotNull VariableContext variableContext)
        Searches for a context baseline with exactly the same set of variables. If not found and variable context not empty, new baseline object is created. Method returns null iff variableContext is empty. For performance reasons, search algorithm does not guarantee that it will always find a matching baseline when it exists: it may be limited to recent baseline(s) only.
        Returns:
        existing baseline object if found
      • deleteOrphans

        int deleteOrphans()
        Delete orphaned VariableContextBaseline records. This should be called after removing DeploymentResult entities.
        Returns:
        number of deleted objects
      • iterateVariableContextBaselinesForExport

        long iterateVariableContextBaselinesForExport​(@NotNull
                                                      @NotNull Consumer<VariableContextBaseline> consumer)
        Iterate through and execute function for each of VariableContextBaseline
        Parameters:
        consumer - consumer to accept each of the VariableContextBaseline
        Returns:
        number of traversed rows
      • getVariableContextBaseline

        @Nullable
        @Nullable VariableContextBaseline getVariableContextBaseline​(long variableContextBaselineId)
        Since:
        6.8