com.softslate.commerce.daos.product
Class DiscountDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
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
|
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 |
log
static org.apache.commons.logging.Log log
discount
private Discount discount
DiscountDAOHibernate
public DiscountDAOHibernate()
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 20032005