Enum Class VersionMatchMode

java.lang.Object
java.lang.Enum<VersionMatchMode>
org.hibernate.testing.orm.junit.VersionMatchMode
All Implemented Interfaces:
Serializable, Comparable<VersionMatchMode>, Constable

public enum VersionMatchMode extends Enum<VersionMatchMode>
The mode how versions shall be matched.
See Also:
  • Enum Constant Details

    • OLDER

      public static final VersionMatchMode OLDER
      A database version must be older than the specified version.
    • SAME

      public static final VersionMatchMode SAME
      A database version must be the same as the specified version.
    • SAME_OR_NEWER

      public static final VersionMatchMode SAME_OR_NEWER
      A database version must be the same or newer than the specified version.
    • SAME_OR_OLDER

      public static final VersionMatchMode SAME_OR_OLDER
      A database version must be the same or older than the specified version.
    • NEWER

      public static final VersionMatchMode NEWER
      A database version must be newer than the specified version.
  • Method Details

    • values

      public static VersionMatchMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VersionMatchMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null