Enum Class IStorage.DatabaseState

java.lang.Object
java.lang.Enum<IStorage.DatabaseState>
nl.pim16aap2.animatedarchitecture.core.storage.IStorage.DatabaseState
All Implemented Interfaces:
Serializable, Comparable<IStorage.DatabaseState>, Constable
Enclosing interface:
IStorage

public static enum IStorage.DatabaseState extends Enum<IStorage.DatabaseState>
Represents the status of the database.
  • Enum Constant Details

    • OK

      public static final IStorage.DatabaseState OK
      Everything is in order.
    • ERROR

      public static final IStorage.DatabaseState ERROR
      An error occurred somewhere along the way.
    • TOO_NEW

      public static final IStorage.DatabaseState TOO_NEW
      The database version is newer than the maximum allowed version.
    • UPGRADE_IMPOSSIBLE

      public static final IStorage.DatabaseState UPGRADE_IMPOSSIBLE
      The database version is older than the minimum allowed version and can therefore not be upgraded.
    • UNINITIALIZED

      public static final IStorage.DatabaseState UNINITIALIZED
      The database has not been initialized yet.
    • NO_DRIVER

      public static final IStorage.DatabaseState NO_DRIVER
      No driver could be found.
  • Method Details

    • values

      public static IStorage.DatabaseState[] 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 IStorage.DatabaseState 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