com.softslate.commerce.daos.product
Class DiscountDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.product.DiscountDAOHibernate
All Implemented Interfaces:
DAOInterface, DiscountDAO

public class DiscountDAOHibernate
extends BaseDAO
implements DAOInterface, DiscountDAO

Generic DAO to manage the sscDiscount table of the database.

Author:
David Tobey

Field Summary
private  Discount discount
           
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
DiscountDAOHibernate()
           
 
Method Summary
 void deleteDiscount()
           
 void deleteDiscount(boolean commit)
           
 Discount getDiscount()
           
 void insertDiscount()
           
 void insertDiscount(boolean commit)
           
 void loadDiscountFromCode()
           
 void loadDiscountFromID()
           
 void setDiscount(Discount discount)
           
 void updateDiscount()
           
 void updateDiscount(boolean commit)
           
 
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
 

Field Detail

log

static org.apache.commons.logging.Log log

discount

private Discount discount
Constructor Detail

DiscountDAOHibernate

public DiscountDAOHibernate()
Method Detail

getDiscount

public Discount getDiscount()
Specified by:
getDiscount in interface DiscountDAO

setDiscount

public void setDiscount(Discount discount)
Specified by:
setDiscount in interface DiscountDAO

loadDiscountFromID

public void loadDiscountFromID()
                        throws java.lang.Exception
Specified by:
loadDiscountFromID in interface DiscountDAO
Throws:
java.lang.Exception

loadDiscountFromCode

public void loadDiscountFromCode()
                          throws DataAccessException
Specified by:
loadDiscountFromCode in interface DiscountDAO
Throws:
DataAccessException

insertDiscount

public void insertDiscount()
                    throws DataAccessException
Specified by:
insertDiscount in interface DiscountDAO
Throws:
DataAccessException

insertDiscount

public void insertDiscount(boolean commit)
                    throws DataAccessException
Specified by:
insertDiscount in interface DiscountDAO
Throws:
DataAccessException

updateDiscount

public void updateDiscount()
                    throws DataAccessException
Specified by:
updateDiscount in interface DiscountDAO
Throws:
DataAccessException

updateDiscount

public void updateDiscount(boolean commit)
                    throws DataAccessException
Specified by:
updateDiscount in interface DiscountDAO
Throws:
DataAccessException

deleteDiscount

public void deleteDiscount()
                    throws DataAccessException
Specified by:
deleteDiscount in interface DiscountDAO
Throws:
DataAccessException

deleteDiscount

public void deleteDiscount(boolean commit)
                    throws DataAccessException
Specified by:
deleteDiscount in interface DiscountDAO
Throws:
DataAccessException


Copyright © SoftSlate, LLC 2003–2005