com.softslate.commerce.daos.product
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
public class SKUGatewayDAOHibernate
- extends BaseAdminGatewayDAOHibernate
- implements SKUGatewayDAO
Generic DAO that runs miscellaneous queries related to skus.
- Author:
- David Tobey
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO |
deleteObject, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, 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, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap, updateObject |
log
static org.apache.commons.logging.Log log
SKUGatewayDAOHibernate
public SKUGatewayDAOHibernate()
loadSKUsAndCount
public java.util.Map loadSKUsAndCount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadSKUsAndCount
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
editDeleteSKUs
public void editDeleteSKUs(java.util.Map parameters,
BusinessObjectFactory bof)
throws java.lang.Exception
- Specified by:
editDeleteSKUs
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
decrementSKU
public void decrementSKU(int skuID,
int quantity)
throws java.lang.Exception
- Specified by:
decrementSKU
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
decrementSKU
public void decrementSKU(boolean commit,
int skuID,
int quantity)
throws java.lang.Exception
- Specified by:
decrementSKU
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
incrementSKU
public void incrementSKU(int skuID,
int quantity)
throws java.lang.Exception
- Specified by:
incrementSKU
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
incrementSKU
public void incrementSKU(boolean commit,
int skuID,
int quantity)
throws java.lang.Exception
- Specified by:
incrementSKU
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
deleteOrphanedSKUs
public void deleteOrphanedSKUs(boolean commit)
throws java.lang.Exception
- Specified by:
deleteOrphanedSKUs
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
loadMaxSKUID
public int loadMaxSKUID()
throws java.lang.Exception
- Specified by:
loadMaxSKUID
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
loadAllSKUsInRange
public java.util.Collection loadAllSKUsInRange(int firstID,
int lastID)
throws java.lang.Exception
- Specified by:
loadAllSKUsInRange
in interface SKUGatewayDAO
- Throws:
java.lang.Exception
Copyright © SoftSlate, LLC 20032005