Class Entry

  • All Implemented Interfaces:
    Iterable<Version>

    public class Entry
    extends Object
    implements Iterable<Version>
    Versions are stored in the same order they are registered (in historical package install order). That means when rollbacking an update the file system will be modified only if the last version was rollbacked. And the version that will become the current version will be the last version in the version list.
    Author:
    Bogdan Stefanescu
    • Constructor Detail

      • Entry

        public Entry​(String key)
    • Method Detail

      • isEmpty

        public final boolean isEmpty()
      • getFirstVersion

        public final Version getFirstVersion()
      • getLastVersion

        public final Version getLastVersion()
      • getLastVersion

        public Version getLastVersion​(boolean includeUpgradeOnly)
        Returns:
        Last version not deployed in upgradeOnly mode
        Since:
        5.7
      • getKey

        public final String getKey()
      • setBaseVersion

        public final void setBaseVersion​(Version baseVersion)
      • hasBaseVersion

        public final boolean hasBaseVersion()
      • getBaseVersion

        public final Version getBaseVersion()
      • isLastVersion

        public final boolean isLastVersion​(Version v)
      • removeVersion

        public boolean removeVersion​(Version version)
      • getGreatestVersion

        public Version getGreatestVersion()
      • getOrCreateVersion

        public Version getOrCreateVersion​(String version)