Enum Class UpgradeType
- All Implemented Interfaces:
Serializable, Comparable<UpgradeType>, Constable
An enum indicating what type of upgrade, if any, is needed and possible to bring the
project configuration format in sync with the current Cayenne runtime.
- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe project configuration format is from a newer version of Cayenne, and the current runtime can't work with it.The project configuration format is from an older version of Cayenne, and it can be upgraded to the current Cayenne version, however some information may get lost during the upgrade.The project configuration format is from an older version of Cayenne, and it can be fully upgraded to the current Cayenne version.The project configuration is current and can be used with the enclosing Cayenne runtime. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeTypeReturns the enum constant of this class with the specified name.static UpgradeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UPGRADE_NOT_NEEDED
The project configuration is current and can be used with the enclosing Cayenne runtime. -
UPGRADE_NEEDED
The project configuration format is from an older version of Cayenne, and it can be fully upgraded to the current Cayenne version. -
INTERMEDIATE_UPGRADE_NEEDED
The project configuration format is from an older version of Cayenne, and it can be upgraded to the current Cayenne version, however some information may get lost during the upgrade. A user may still chose to upgrade, however a recommended upgrade path is to do an intermediary upgrade using previous versions of Cayenne. -
DOWNGRADE_NEEDED
The project configuration format is from a newer version of Cayenne, and the current runtime can't work with it.
-
-
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
-