Class UpgradesProcessor

All Implemented Interfaces:
BusinessObject, BusinessProcessor

public class UpgradesProcessor extends BaseBusinessProcessor
Processes an upgrade for the application from one version to another.
Author:
David Tobey
  • Field Details

    • log

      static org.apache.commons.logging.Log log
    • pathToUpgrades

      private String pathToUpgrades
      The path in the application to the directory containing upgrade scripts to be run against the database. By default, "/WEB-INF/classes/resources/upgrades".
    • upgrades

      private ArrayList upgrades
  • Constructor Details

    • UpgradesProcessor

      public UpgradesProcessor()
  • Method Details

    • getPathToUpgrades

      public String getPathToUpgrades()
    • setPathToUpgrades

      public void setPathToUpgrades(String pathToUpgrades)
    • getUpgrades

      public ArrayList getUpgrades()
    • setUpgrades

      public void setUpgrades(ArrayList upgrades)
    • processUpgrades

      public Settings processUpgrades(Map parameters) throws Exception
      Processes an upgrade for the application from one version to another. Calls UpgradesDAOBasic.processUpgrades(ArrayList, String, Settings) to execute the upgrade in the database.
      Parameters:
      parameters - A Map containing parameters for the upgrade process.
      Returns:
      A Settings representing the application settins after the upgrade has been processed.
      Throws:
      Exception
    • processSingleSqlScript

      public void processSingleSqlScript(String pathToScript) throws Exception
      Throws:
      Exception