Package com.atlassian.bamboo.versioning
Class RepositoryDataEntityVersioningSupplement
java.lang.Object
com.atlassian.bamboo.versioning.AbstractVersioningSupplement<RepositoryDataEntity,RepositoryDataEntityImpl>
com.atlassian.bamboo.versioning.RepositoryDataEntityVersioningSupplement
- All Implemented Interfaces:
VersioningSupplement<RepositoryDataEntity>
public final class RepositoryDataEntityVersioningSupplement
extends AbstractVersioningSupplement<RepositoryDataEntity,RepositoryDataEntityImpl>
-
Field Summary
Fields inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
bambooClusterSettings, ID_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryDataEntityVersioningSupplement(@NotNull BambooClusterSettings bambooClusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementVersion(long id, @Nullable org.hibernate.Session session) voidincrementVersion(@Nullable RepositoryDataEntity repositoryData, @Nullable org.hibernate.Session session, boolean onlyIfSessionDirty) Increments the version of the given entity.Methods inherited from class com.atlassian.bamboo.versioning.AbstractVersioningSupplement
incrementVersion, incrementVersion, incrementVersion
-
Constructor Details
-
RepositoryDataEntityVersioningSupplement
public RepositoryDataEntityVersioningSupplement(@NotNull @NotNull BambooClusterSettings bambooClusterSettings)
-
-
Method Details
-
incrementVersion
public void incrementVersion(@Nullable @Nullable RepositoryDataEntity repositoryData, @Nullable @Nullable org.hibernate.Session session, boolean onlyIfSessionDirty) Description copied from interface:VersioningSupplementIncrements the version of the given entity.- Parameters:
repositoryData- the entity whose version needs to be incrementedsession- the session to use for incrementing the versiononlyIfSessionDirty- 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.
-
incrementVersion
public void incrementVersion(long id, @Nullable @Nullable org.hibernate.Session session)
-