Package com.softslate.commerce.daos.core
Class UpgradesDAOBasic
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.UpgradesDAOBasic
- All Implemented Interfaces:
DAOInterface
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processFile
(String pathToScript, Statement statement, String tablePrefix) Add all the queries in a given file to a Statement's batch.void
processSingleSqlScript
(String pathToScript) processUpgrades
(ArrayList upgrades, String pathToUpgrades, Settings settings) Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, doWorkToSetConnection, editAssignment, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getInjector, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMap, updateObject
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
UpgradesDAOBasic
public UpgradesDAOBasic()
-
-
Method Details
-
processUpgrades
public Settings processUpgrades(ArrayList upgrades, String pathToUpgrades, Settings settings) throws Exception - Throws:
Exception
-
processFile
public void processFile(String pathToScript, Statement statement, String tablePrefix) throws Exception Add all the queries in a given file to a Statement's batch. Each query must end with a semi-colon followed immediately by a newline.- Throws:
Exception
-
processSingleSqlScript
- Throws:
Exception
-