Class DiscountGatewayDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.product.DiscountGatewayDAOHibernate
- All Implemented Interfaces:
DAOInterface
,DiscountGatewayDAO
public class DiscountGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements DiscountGatewayDAO
Generic DAO that runs miscellaneous queries related to discounts.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioneditDeleteAssignments
(Map parameters, Object item, BusinessObjectFactory bof, int index) editDeleteDiscounts
(Map parameters, BusinessObjectFactory bof) void
void
insertSKUDiscount
(SKUDiscount sd, boolean commit) loadDiscountsAndCount
(Map parameters) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, postChangingItemEvent, 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
-
DiscountGatewayDAOHibernate
public DiscountGatewayDAOHibernate()
-
-
Method Details
-
loadStoreDiscounts
- Specified by:
loadStoreDiscounts
in interfaceDiscountGatewayDAO
- Throws:
Exception
-
loadDiscountsAndCount
- Specified by:
loadDiscountsAndCount
in interfaceDiscountGatewayDAO
- Throws:
Exception
-
editDeleteDiscounts
- Specified by:
editDeleteDiscounts
in interfaceDiscountGatewayDAO
- Throws:
Exception
-
editDeleteAssignments
public Map editDeleteAssignments(Map parameters, Object item, BusinessObjectFactory bof, int index) throws Exception - Overrides:
editDeleteAssignments
in classBaseAdminGatewayDAOHibernate
- Throws:
Exception
-
insertSKUDiscount
- Specified by:
insertSKUDiscount
in interfaceDiscountGatewayDAO
- Throws:
DataAccessException
-
insertSKUDiscount
- Specified by:
insertSKUDiscount
in interfaceDiscountGatewayDAO
- Throws:
DataAccessException
-
loadAllCoupons
- Specified by:
loadAllCoupons
in interfaceDiscountGatewayDAO
- Throws:
DataAccessException
-