Package alpine.upgrade
Class UpgradeExecutor
- java.lang.Object
-
- alpine.upgrade.UpgradeExecutor
-
public class UpgradeExecutor extends Object
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
Constructors Constructor Description UpgradeExecutor(AlpineQueryManager qm)Constructs a new UpgradeExecutor object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteUpgrades(List<Class<? extends UpgradeItem>> classes)Performs the execution of upgrades in the order defined by the specified array.
-
-
-
Constructor Detail
-
UpgradeExecutor
public UpgradeExecutor(AlpineQueryManager qm)
Constructs a new UpgradeExecutor object.- Parameters:
qm- an AlpineQueryManager (or superclass) object- Since:
- 1.2.0
-
-
Method Detail
-
executeUpgrades
public void executeUpgrades(List<Class<? extends UpgradeItem>> classes) throws UpgradeException
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
-
-