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
Represents the status of the database.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error occurred somewhere along the way.No driver could be found.Everything is in order.The database version is newer than the maximum allowed version.The database has not been initialized yet.The database version is older than the minimum allowed version and can therefore not be upgraded. -
Method Summary
Modifier and TypeMethodDescriptionstatic IStorage.DatabaseStateReturns the enum constant of this class with the specified name.static IStorage.DatabaseState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Everything is in order. -
ERROR
An error occurred somewhere along the way. -
TOO_NEW
The database version is newer than the maximum allowed version. -
UPGRADE_IMPOSSIBLE
The database version is older than the minimum allowed version and can therefore not be upgraded. -
UNINITIALIZED
The database has not been initialized yet. -
NO_DRIVER
No driver could be found.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-