Package com.atlassian.bamboo.versioning
Class PlanVersioningSupplement
- java.lang.Object
-
- com.atlassian.bamboo.versioning.AbstractVersioningSupplement<Plan,AbstractPlan>
-
- com.atlassian.bamboo.versioning.PlanVersioningSupplement
-
- All Implemented Interfaces:
VersioningSupplement<Plan>
public final class PlanVersioningSupplement extends AbstractVersioningSupplement<Plan,AbstractPlan>
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
bambooClusterSettings
-
-
Constructor Summary
Constructors Constructor Description PlanVersioningSupplement(@NotNull BambooClusterSettings bambooClusterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
incrementVersion(@Nullable PlanKey planKey, @Nullable org.hibernate.Session session)
Optimization for rare case when we do not have plan on our hand, but we have planKey.void
incrementVersion(@Nullable Plan plan, @Nullable org.hibernate.Session session)
Increments the version of the given object.-
Methods inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
incrementVersion
-
-
-
-
Constructor Detail
-
PlanVersioningSupplement
public PlanVersioningSupplement(@NotNull @NotNull BambooClusterSettings bambooClusterSettings)
-
-
Method Detail
-
incrementVersion
public void incrementVersion(@Nullable @Nullable Plan plan, @Nullable @Nullable org.hibernate.Session session)
Description copied from interface:VersioningSupplement
Increments the version of the given object.- Parameters:
plan
- the object to increment the version ofsession
- the session to use for incrementing the version
-
incrementVersion
public void incrementVersion(@Nullable @Nullable PlanKey planKey, @Nullable @Nullable org.hibernate.Session session)
Optimization for rare case when we do not have plan on our hand, but we have planKey. This lets us save one db call. PlanKey is unique across all plans, so we can use it as a unique predicate.
-
-