Class EnvironmentVersioningSupplement

java.lang.Object
com.atlassian.bamboo.versioning.AbstractVersioningSupplement<MutableEnvironment,MutableEnvironmentImpl>
com.atlassian.bamboo.deployments.versioning.EnvironmentVersioningSupplement
All Implemented Interfaces:
VersioningSupplement<MutableEnvironment>

public class EnvironmentVersioningSupplement extends AbstractVersioningSupplement<MutableEnvironment,MutableEnvironmentImpl>
  • Constructor Details

    • EnvironmentVersioningSupplement

      public EnvironmentVersioningSupplement(@NotNull @NotNull BambooClusterSettings bambooClusterSettings)
  • Method Details

    • incrementVersion

      public void incrementVersion(@Nullable @Nullable MutableEnvironment environment, @Nullable @Nullable org.hibernate.Session session, boolean onlyIfSessionDirty)
      Description copied from interface: VersioningSupplement
      Increments the version of the given entity.
      Parameters:
      environment - the entity whose version needs to be incremented
      session - the session to use for incrementing the version
      onlyIfSessionDirty - a flag indicating whether the version should only be incremented if the session is dirty: - true: The version is incremented only if the session contains changes that need to be flushed. - false: The version is incremented unconditionally, regardless of the session's state.