Package com.softslate.commerce.daos.core
Class SettingsDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.core.SettingsDAOHibernate
- All Implemented Interfaces:
DAOInterface
,SettingsDAO
Generic DAO for setting and retrieving settings from the database.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteSetting
(boolean commit) editDeleteUserSettings
(Map parameters, BusinessObjectFactory bof) generateSettingsMap
(List results) Retrieves theSettings
previously set for this data access object.void
void
insertSetting
(boolean commit) insertSettings
(Map newSettings, Settings settings, Setting setting) void
loadSettings
(Settings settings) loadSettingsAndCount
(Map parameters) loadSettingsByType
(String settingType) postChangingItemEvent
(Object item, Map parameters, BusinessObjectFactory bof) org.hibernate.Criteria
processCommonCriteria
(org.hibernate.Criteria crit, Map parameters) void
setSetting
(Setting setting) void
setSettings
(Settings settings) void
void
updateSetting
(boolean commit) updateSettings
(Map newSettings, Settings settings, Setting setting) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, 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, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, 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, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSqlMap, updateObject
-
Field Details
-
log
static org.apache.commons.logging.Log log -
setting
-
settings
-
-
Constructor Details
-
SettingsDAOHibernate
public SettingsDAOHibernate()
-
-
Method Details
-
getSetting
- Specified by:
getSetting
in interfaceSettingsDAO
-
setSetting
- Specified by:
setSetting
in interfaceSettingsDAO
-
getSettings
Description copied from interface:DAOInterface
Retrieves theSettings
previously set for this data access object.- Specified by:
getSettings
in interfaceDAOInterface
- Overrides:
getSettings
in classBaseDAO
- Returns:
- A
Settings
object that represents various settings for the system.
-
setSettings
- Specified by:
setSettings
in interfaceDAOInterface
- Overrides:
setSettings
in classBaseDAO
-
loadSettings
- Specified by:
loadSettings
in interfaceSettingsDAO
- Throws:
Exception
-
loadSettings
- Specified by:
loadSettings
in interfaceSettingsDAO
- Throws:
DataAccessException
-
loadSettingsByType
- Specified by:
loadSettingsByType
in interfaceSettingsDAO
- Throws:
Exception
-
updateSettings
public Settings updateSettings(Map newSettings, Settings settings, Setting setting) throws Exception - Specified by:
updateSettings
in interfaceSettingsDAO
- Throws:
Exception
-
insertSettings
public Settings insertSettings(Map newSettings, Settings settings, Setting setting) throws Exception - Throws:
Exception
-
generateSettingsMap
- Throws:
Exception
-
insertSetting
- Specified by:
insertSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
insertSetting
- Specified by:
insertSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
loadSettingFromID
- Specified by:
loadSettingFromID
in interfaceSettingsDAO
- Throws:
Exception
-
updateSetting
- Specified by:
updateSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
updateSetting
- Specified by:
updateSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
deleteSetting
- Specified by:
deleteSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
deleteSetting
- Specified by:
deleteSetting
in interfaceSettingsDAO
- Throws:
DataAccessException
-
loadSettingsAndCount
- Specified by:
loadSettingsAndCount
in interfaceSettingsDAO
- Throws:
Exception
-
processCommonCriteria
- Overrides:
processCommonCriteria
in classBaseAdminGatewayDAOHibernate
-
editDeleteUserSettings
- Specified by:
editDeleteUserSettings
in interfaceSettingsDAO
- Throws:
Exception
-
postChangingItemEvent
public Map postChangingItemEvent(Object item, Map parameters, BusinessObjectFactory bof) throws Exception - Overrides:
postChangingItemEvent
in classBaseAdminGatewayDAOHibernate
- Throws:
Exception
-