Class EmailGatewayDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.email.EmailGatewayDAOHibernate
- All Implemented Interfaces:
DAOInterface
,EmailGatewayDAO
public class EmailGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements EmailGatewayDAO
Generic DAO that runs miscellaneous queries related to
Emails.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
editDeleteEmails
(Map parameters, BusinessObjectFactory bof) emailsCountByTypeAndCustomerID
(String type, int customerID) emailsCountByTypeAndEmailAddress
(String type, String emailAddress) emailsCountByTypeAndEmailAddressAfterCreatedTime
(String type, String emailAddress, String createdTime) emailsCountByTypeAndOrderID
(String type, int orderID) loadEmailsAndCount
(Map parameters) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, postChangingItemEvent, processCommonCriteria, setPropertiesDynamically
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
-
-
Constructor Details
-
EmailGatewayDAOHibernate
public EmailGatewayDAOHibernate()
-
-
Method Details
-
loadEmailsAndCount
- Specified by:
loadEmailsAndCount
in interfaceEmailGatewayDAO
- Throws:
Exception
-
editDeleteEmails
- Specified by:
editDeleteEmails
in interfaceEmailGatewayDAO
- Throws:
Exception
-
loadAllEmails
- Specified by:
loadAllEmails
in interfaceEmailGatewayDAO
- Throws:
DataAccessException
-
emailsCountByTypeAndOrderID
- Specified by:
emailsCountByTypeAndOrderID
in interfaceEmailGatewayDAO
- Throws:
Exception
-
emailsCountByTypeAndCustomerID
- Specified by:
emailsCountByTypeAndCustomerID
in interfaceEmailGatewayDAO
- Throws:
Exception
-
emailsCountByTypeAndEmailAddress
- Specified by:
emailsCountByTypeAndEmailAddress
in interfaceEmailGatewayDAO
- Throws:
Exception
-
emailsCountByTypeAndEmailAddressAfterCreatedTime
public Integer emailsCountByTypeAndEmailAddressAfterCreatedTime(String type, String emailAddress, String createdTime) throws Exception - Specified by:
emailsCountByTypeAndEmailAddressAfterCreatedTime
in interfaceEmailGatewayDAO
- Throws:
Exception
-