Package alpine.server.upgrade
Class UpgradeExecutor
java.lang.Object
alpine.server.upgrade.UpgradeExecutor
Executes upgrades by first checking if execution is necessary and if the specific upgrade
has already been executed. If an upgrade is necessary and the specific upgrade being requested
has not previously executed, the upgrade will be processed and the schema version will be upgraded.
- Since:
- 1.2.0
- Author:
- Steve Springett
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new UpgradeExecutor object. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteUpgrades(List<Class<? extends UpgradeItem>> classes) Performs the execution of upgrades in the order defined by the specified array.
-
Constructor Details
-
UpgradeExecutor
Constructs a new UpgradeExecutor object.- Parameters:
qm- an AlpineQueryManager (or superclass) object- Since:
- 1.2.0
-
-
Method Details
-
executeUpgrades
Performs the execution of upgrades in the order defined by the specified array.- Parameters:
classes- the upgrade classes- Throws:
UpgradeException- if errors are encountered- Since:
- 1.2.0
-