com.softslate.commerce.daos.product
Class DiscountGatewayDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
          extended by 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
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
DiscountGatewayDAOHibernate()
           
 
Method Summary
 void editDeleteAssignments(java.util.Map parameters, java.lang.Object item, BusinessObjectFactory bof, int index)
           
 void editDeleteDiscounts(java.util.Map parameters, BusinessObjectFactory bof)
           
 void insertSKUDiscount(SKUDiscount sd)
           
 void insertSKUDiscount(SKUDiscount sd, boolean commit)
           
 java.util.Collection loadAllCoupons()
           
 java.util.Map loadDiscountsAndCount(java.util.Map parameters)
           
 java.util.Collection loadStoreDiscounts()
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteItems, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, processCommonCriteria, setPropertiesDynamically
 
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
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

DiscountGatewayDAOHibernate

public DiscountGatewayDAOHibernate()
Method Detail

loadStoreDiscounts

public java.util.Collection loadStoreDiscounts()
                                        throws java.lang.Exception
Specified by:
loadStoreDiscounts in interface DiscountGatewayDAO
Throws:
java.lang.Exception

loadDiscountsAndCount

public java.util.Map loadDiscountsAndCount(java.util.Map parameters)
                                    throws java.lang.Exception
Specified by:
loadDiscountsAndCount in interface DiscountGatewayDAO
Throws:
java.lang.Exception

editDeleteDiscounts

public void editDeleteDiscounts(java.util.Map parameters,
                                BusinessObjectFactory bof)
                         throws java.lang.Exception
Specified by:
editDeleteDiscounts in interface DiscountGatewayDAO
Throws:
java.lang.Exception

editDeleteAssignments

public void editDeleteAssignments(java.util.Map parameters,
                                  java.lang.Object item,
                                  BusinessObjectFactory bof,
                                  int index)
                           throws java.lang.Exception
Overrides:
editDeleteAssignments in class BaseAdminGatewayDAOHibernate
Throws:
java.lang.Exception

insertSKUDiscount

public void insertSKUDiscount(SKUDiscount sd)
                       throws DataAccessException
Specified by:
insertSKUDiscount in interface DiscountGatewayDAO
Throws:
DataAccessException

insertSKUDiscount

public void insertSKUDiscount(SKUDiscount sd,
                              boolean commit)
                       throws DataAccessException
Specified by:
insertSKUDiscount in interface DiscountGatewayDAO
Throws:
DataAccessException

loadAllCoupons

public java.util.Collection loadAllCoupons()
                                    throws DataAccessException
Specified by:
loadAllCoupons in interface DiscountGatewayDAO
Throws:
DataAccessException


Copyright © SoftSlate, LLC 2003–2005