Class SKUGatewayDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.product.SKUGatewayDAOHibernate
- All Implemented Interfaces:
DAOInterface
,SKUGatewayDAO
Generic DAO that runs miscellaneous queries related to skus.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decrementSKU
(boolean commit, int skuID, int quantity) void
decrementSKU
(int skuID, int quantity) void
deleteOrphanedSKUs
(boolean commit) editDeleteSKUs
(Map parameters, BusinessObjectFactory bof) void
incrementSKU
(boolean commit, int skuID, int quantity) void
incrementSKU
(int skuID, int quantity) loadAllSKUsInRange
(int firstID, int lastID) int
loadSKUsAndCount
(Map parameters) postChangingItemEvent
(Object item, Map parameters, BusinessObjectFactory bof) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, processCommonCriteria, setPropertiesDynamically
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
SKUGatewayDAOHibernate
public SKUGatewayDAOHibernate()
-
-
Method Details
-
loadSKUsAndCount
- Specified by:
loadSKUsAndCount
in interfaceSKUGatewayDAO
- Throws:
Exception
-
editDeleteSKUs
- Specified by:
editDeleteSKUs
in interfaceSKUGatewayDAO
- Throws:
Exception
-
postChangingItemEvent
public Map postChangingItemEvent(Object item, Map parameters, BusinessObjectFactory bof) throws Exception - Overrides:
postChangingItemEvent
in classBaseAdminGatewayDAOHibernate
- Throws:
Exception
-
decrementSKU
- Specified by:
decrementSKU
in interfaceSKUGatewayDAO
- Throws:
Exception
-
decrementSKU
- Specified by:
decrementSKU
in interfaceSKUGatewayDAO
- Throws:
Exception
-
incrementSKU
- Specified by:
incrementSKU
in interfaceSKUGatewayDAO
- Throws:
Exception
-
incrementSKU
- Specified by:
incrementSKU
in interfaceSKUGatewayDAO
- Throws:
Exception
-
deleteOrphanedSKUs
- Specified by:
deleteOrphanedSKUs
in interfaceSKUGatewayDAO
- Throws:
Exception
-
loadMaxSKUID
- Specified by:
loadMaxSKUID
in interfaceSKUGatewayDAO
- Throws:
Exception
-
loadAllSKUsInRange
- Specified by:
loadAllSKUsInRange
in interfaceSKUGatewayDAO
- Throws:
Exception
-