Class DiscountDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.product.DiscountDAOHibernate
- All Implemented Interfaces:
DAOInterface,DiscountDAO
Generic DAO to manage the
sscDiscount table of the database.- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteDiscount(boolean commit) voidvoidinsertDiscount(boolean commit) voidvoidvoidsetDiscount(Discount discount) voidvoidupdateDiscount(boolean commit) 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, updateObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 -
discount
-
-
Constructor Details
-
DiscountDAOHibernate
public DiscountDAOHibernate()
-
-
Method Details
-
getDiscount
- Specified by:
getDiscountin interfaceDiscountDAO
-
setDiscount
- Specified by:
setDiscountin interfaceDiscountDAO
-
loadDiscountFromID
- Specified by:
loadDiscountFromIDin interfaceDiscountDAO- Throws:
Exception
-
loadDiscountFromCode
- Specified by:
loadDiscountFromCodein interfaceDiscountDAO- Throws:
DataAccessException
-
insertDiscount
- Specified by:
insertDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-
insertDiscount
- Specified by:
insertDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-
updateDiscount
- Specified by:
updateDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-
updateDiscount
- Specified by:
updateDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-
deleteDiscount
- Specified by:
deleteDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-
deleteDiscount
- Specified by:
deleteDiscountin interfaceDiscountDAO- Throws:
DataAccessException
-