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 TypeMethodDescriptionvoid
void
deleteDiscount
(boolean commit) void
void
insertDiscount
(boolean commit) void
void
void
setDiscount
(Discount discount) void
void
updateDiscount
(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, 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 -
discount
-
-
Constructor Details
-
DiscountDAOHibernate
public DiscountDAOHibernate()
-
-
Method Details
-
getDiscount
- Specified by:
getDiscount
in interfaceDiscountDAO
-
setDiscount
- Specified by:
setDiscount
in interfaceDiscountDAO
-
loadDiscountFromID
- Specified by:
loadDiscountFromID
in interfaceDiscountDAO
- Throws:
Exception
-
loadDiscountFromCode
- Specified by:
loadDiscountFromCode
in interfaceDiscountDAO
- Throws:
DataAccessException
-
insertDiscount
- Specified by:
insertDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-
insertDiscount
- Specified by:
insertDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-
updateDiscount
- Specified by:
updateDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-
updateDiscount
- Specified by:
updateDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-
deleteDiscount
- Specified by:
deleteDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-
deleteDiscount
- Specified by:
deleteDiscount
in interfaceDiscountDAO
- Throws:
DataAccessException
-