com.softslate.commerce.businessobjects.administrator
Class UpgradesProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.administrator.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 Summary |
(package private) static org.apache.commons.logging.Log |
log
|
private java.lang.String |
pathToUpgrades
The path in the application to the directory containing upgrade scripts
to be run against the database. |
private java.util.ArrayList |
upgrades
|
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor |
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, updateOrderTotals, updateOrderTotals, utils |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
pathToUpgrades
private java.lang.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 java.util.ArrayList upgrades
UpgradesProcessor
public UpgradesProcessor()
getPathToUpgrades
public java.lang.String getPathToUpgrades()
setPathToUpgrades
public void setPathToUpgrades(java.lang.String pathToUpgrades)
getUpgrades
public java.util.ArrayList getUpgrades()
setUpgrades
public void setUpgrades(java.util.ArrayList upgrades)
processUpgrades
public Settings processUpgrades(java.util.Map parameters)
throws java.lang.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:
java.lang.Exception
Copyright © SoftSlate, LLC 20032005