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
Processes an upgrade for the application from one version to another.
- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessSingleSqlScript(String pathToScript) processUpgrades(Map parameters) Processes an upgrade for the application from one version to another.voidsetPathToUpgrades(String pathToUpgrades) voidsetUpgrades(ArrayList upgrades) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
-
Field Details
-
log
static org.apache.commons.logging.Log log -
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
-
-
Constructor Details
-
UpgradesProcessor
public UpgradesProcessor()
-
-
Method Details
-
getPathToUpgrades
-
setPathToUpgrades
-
getUpgrades
-
setUpgrades
-
processUpgrades
Processes an upgrade for the application from one version to another. CallsUpgradesDAOBasic.processUpgrades(ArrayList, String, Settings)to execute the upgrade in the database.- Parameters:
parameters- AMapcontaining parameters for the upgrade process.- Returns:
- A
Settingsrepresenting the application settins after the upgrade has been processed. - Throws:
Exception
-
processSingleSqlScript
- Throws:
Exception
-