Interface UpgradeHandler
- All Known Implementing Classes:
UpgradeHandler_V10, UpgradeHandler_V11, UpgradeHandler_V12, UpgradeHandler_V13, UpgradeHandler_V14
public sealed interface UpgradeHandler
permits UpgradeHandler_V10, UpgradeHandler_V11, UpgradeHandler_V12, UpgradeHandler_V13, UpgradeHandler_V14
A step of the project upgrade that brings the XML and the model from the previous project version to the version
it reports in
getVersion(). The set of handlers is closed: every handler is a permitted implementation of
this interface.- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProject version written by this version of Cayenne.static final StringThe oldest project version that can be upgraded toCURRENT_VERSION.static final StringVersion reported for projects that whose version can not be determined. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<UpgradeHandler> all()Creates an instance of every permitted handler, ordered from the oldest to the current version.voidupgradeDataMapDOM(UpgradeContext context) voidupgradeProjectDOM(UpgradeContext context)
-
Field Details
-
CURRENT_VERSION
Project version written by this version of Cayenne.- Since:
- 5.0
- See Also:
-
MIN_SUPPORTED_VERSION
The oldest project version that can be upgraded toCURRENT_VERSION. Older projects must first be upgraded with an older CayenneModeler.- Since:
- 5.0
- See Also:
-
UNKNOWN_VERSION
Version reported for projects that whose version can not be determined.- Since:
- 5.0
- See Also:
-
-
Method Details
-
all
Creates an instance of every permitted handler, ordered from the oldest to the current version. Must be kept in sync with the "permits" clause.- Since:
- 5.0
-
getVersion
String getVersion() -
upgradeProjectDOM
- Since:
- 5.0
-
upgradeDataMapDOM
- Since:
- 5.0
-