Class VersionHistory

java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
com.atlassian.confluence.core.VersionHistory
All Implemented Interfaces:
NotExportable, Serializable, Cloneable

@Entity public class VersionHistory extends AnnotatedEntityObject implements NotExportable
A record of an upgrade performed on Confluence. The most recent VersionHistory object will tell us what version the database has been upgraded to.

Changing this file can cause serious pain.

The VersionHistory is (necessarily) queried by the bootstrap manager on startup, and by the upgrade manager BEFORE any schema update is performed. This means that if you change the definition of this object, you need to make sure that the following direct SQL queries still work:

  1. HibernateVersionHistoryDao.getLatestBuildNumber()
  2. DefaultBootstrapDatabaseAccessor.getBootstrapData()
See Also:
  • Constructor Details

    • VersionHistory

      public VersionHistory()
    • VersionHistory

      public VersionHistory(int buildNumber, Date installationDate)
    • VersionHistory

      public VersionHistory(int buildNumber, Date installationDate, String versionTag)
  • Method Details

    • getId

      public long getId()
      Overrides:
      getId in class com.atlassian.core.bean.EntityObject
    • getBuildNumber

      public int getBuildNumber()
    • isFinalized

      public boolean isFinalized()
    • setBuildNumber

      public void setBuildNumber(int buildNumber)
    • getInstallationDate

      public Date getInstallationDate()
    • setFinalized

      public void setFinalized(boolean finalized)
    • setInstallationDate

      public void setInstallationDate(Date installationDate)
    • getVersionTag

      public String getVersionTag()
    • setVersionTag

      public void setVersionTag(String versionTag)