Class AbstractVersioningSupplement<T,R>

java.lang.Object
com.atlassian.bamboo.versioning.AbstractVersioningSupplement<T,R>
All Implemented Interfaces:
VersioningSupplement<T>
Direct Known Subclasses:
DeploymentProjectVersioningSupplement, EnvironmentVersioningSupplement, PlanVersioningSupplement, RepositoryDataEntityVersioningSupplement

public abstract class AbstractVersioningSupplement<T,R> extends Object implements VersioningSupplement<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final BambooClusterSettings
     
    protected static final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractVersioningSupplement(@NotNull BambooClusterSettings bambooClusterSettings, @NotNull Class<R> type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    incrementVersion(@Nullable org.hibernate.Session session, boolean canExecute, @NotNull org.apache.logging.log4j.util.TriConsumer<jakarta.persistence.criteria.CriteriaBuilder,jakarta.persistence.criteria.CriteriaUpdate<R>,jakarta.persistence.criteria.Root<R>> where)
     
    protected void
    incrementVersion(@Nullable org.hibernate.Session session, boolean canExecute, @NotNull org.apache.logging.log4j.util.TriConsumer<jakarta.persistence.criteria.CriteriaBuilder,jakarta.persistence.criteria.CriteriaUpdate<R>,jakarta.persistence.criteria.Root<R>> where, boolean onlyIfSessionDirty)
     
    void
    incrementVersion(T repositoryData, @Nullable org.hibernate.Session session)
    Increments the version of the given entity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.bamboo.versioning.VersioningSupplement

    incrementVersion
  • Field Details

  • Constructor Details

    • AbstractVersioningSupplement

      protected AbstractVersioningSupplement(@NotNull @NotNull BambooClusterSettings bambooClusterSettings, @NotNull @NotNull Class<R> type)
  • Method Details

    • incrementVersion

      public void incrementVersion(@Nullable T repositoryData, @Nullable @Nullable org.hibernate.Session session)
      Description copied from interface: VersioningSupplement
      Increments the version of the given entity. Comparing to VersioningSupplement.incrementVersion(T, Session, boolean), the version increment is always performed, regardless of the dirtiness state of the session.
      Specified by:
      incrementVersion in interface VersioningSupplement<T>
      Parameters:
      repositoryData - the entity whose version needs to be incremented
      session - the session to use for incrementing the version
    • incrementVersion

      protected void incrementVersion(@Nullable @Nullable org.hibernate.Session session, boolean canExecute, @NotNull @NotNull org.apache.logging.log4j.util.TriConsumer<jakarta.persistence.criteria.CriteriaBuilder,jakarta.persistence.criteria.CriteriaUpdate<R>,jakarta.persistence.criteria.Root<R>> where)
    • incrementVersion

      protected void incrementVersion(@Nullable @Nullable org.hibernate.Session session, boolean canExecute, @NotNull @NotNull org.apache.logging.log4j.util.TriConsumer<jakarta.persistence.criteria.CriteriaBuilder,jakarta.persistence.criteria.CriteriaUpdate<R>,jakarta.persistence.criteria.Root<R>> where, boolean onlyIfSessionDirty)