Class DeploymentProjectVersioningSupplement
java.lang.Object
com.atlassian.bamboo.versioning.AbstractVersioningSupplement<MutableDeploymentProject,MutableDeploymentProjectImpl>
com.atlassian.bamboo.deployments.versioning.DeploymentProjectVersioningSupplement
- All Implemented Interfaces:
VersioningSupplement<MutableDeploymentProject>
public class DeploymentProjectVersioningSupplement
extends AbstractVersioningSupplement<MutableDeploymentProject,MutableDeploymentProjectImpl>
-
Field Summary
Fields inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
bambooClusterSettings, ID_FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentProjectVersioningSupplement
(@NotNull BambooClusterSettings bambooClusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementVersion
(@Nullable MutableDeploymentProject deploymentProject, @Nullable org.hibernate.Session session) Increments the version of the given deployment project if it is not null and has a valid ID.Methods inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
incrementVersion
-
Constructor Details
-
DeploymentProjectVersioningSupplement
public DeploymentProjectVersioningSupplement(@NotNull @NotNull BambooClusterSettings bambooClusterSettings)
-
-
Method Details
-
incrementVersion
public void incrementVersion(@Nullable @Nullable MutableDeploymentProject deploymentProject, @Nullable @Nullable org.hibernate.Session session) Increments the version of the given deployment project if it is not null and has a valid ID. Uses the provided Hibernate session to perform the version increment operation.- Parameters:
deploymentProject
- The MutableDeploymentProject instance whose version needs to be incremented.session
- The Hibernate Session used to perform the database operations.
-