Class UpgradeExecutor

java.lang.Object
alpine.server.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 Details

    • UpgradeExecutor

      public UpgradeExecutor(AlpineQueryManager qm)
      Constructs a new UpgradeExecutor object.
      Parameters:
      qm - an AlpineQueryManager (or superclass) object
      Since:
      1.2.0
  • Method Details

    • 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