Interface VariableContextBaselineDao
- All Superinterfaces:
BambooObjectDao<VariableContextBaseline>
- All Known Implementing Classes:
VariableContextBaselineHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptionint
Delete orphaned VariableContextBaseline records.@Nullable VariableContextBaseline
findByDeploymentResultId
(long deploymentResultId) @Nullable VariableContextBaseline
findById
(long id) @Nullable VariableContextBaseline
getVariableContextBaseline
(long variableContextBaselineId) long
iterateVariableContextBaselinesForExport
(@NotNull Consumer<VariableContextBaseline> consumer) Iterate through and execute function for each of VariableContextBaseline@Nullable VariableContextBaseline
resolveVariableContextBaseline
(@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
-