Enum Class ObjectState
- All Implemented Interfaces:
Serializable,Comparable<ObjectState>,Constable
Enumeration of possible states for database objects during schema comparison and migration.
Defines what action needs to be taken for an object when applying schema changes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(ObjectState... states) Checks if this state matches any of the provided states.static ObjectStateReturns the enum constant of this class with the specified name.static ObjectState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CREATE
-
RECREATE
-
ALTER
-
DROP
-
ALTER_WITH_DEP
-
NOTHING
-
-
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
-
in
Checks if this state matches any of the provided states.- Parameters:
states- the states to check against- Returns:
- true if this state is in the provided list
-