Interface VariableContextBaselineDao
- All Superinterfaces:
BambooObjectDao<VariableContextBaseline>
- All Known Implementing Classes:
VariableContextBaselineHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptionintDelete orphaned VariableContextBaseline records.@Nullable VariableContextBaselinefindByDeploymentResultId(long deploymentResultId) @Nullable VariableContextBaselinefindById(long id) @Nullable VariableContextBaselinegetVariableContextBaseline(long variableContextBaselineId) longiterateVariableContextBaselinesForExport(@NotNull Consumer<VariableContextBaseline> consumer) Iterate through and execute function for each of VariableContextBaseline@Nullable VariableContextBaselineresolveVariableContextBaseline(@NotNull VariableContext variableContext) Searches for a context baseline with exactly the same set of variables.Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Method Details
-
findById
-
findByDeploymentResultId
-
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
-