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
public class SettingsDAOHibernate
- extends BaseAdminGatewayDAOHibernate
- implements SettingsDAO
Generic DAO for setting and retrieving settings from the database.
- Author:
- David Tobey
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO |
deleteObject, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, 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, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSqlMap, updateObject |
log
static org.apache.commons.logging.Log log
setting
private Setting setting
settings
private Settings settings
SettingsDAOHibernate
public SettingsDAOHibernate()
getSetting
public Setting getSetting()
- Specified by:
getSetting
in interface SettingsDAO
setSetting
public void setSetting(Setting setting)
- Specified by:
setSetting
in interface SettingsDAO
getSettings
public Settings getSettings()
- Description copied from interface:
DAOInterface
- Retrieves the
Settings
previously set for this data access
object.
- Specified by:
getSettings
in interface DAOInterface
- Overrides:
getSettings
in class BaseDAO
- Returns:
- A
Settings
object that represents various settings
for the system.
setSettings
public void setSettings(Settings settings)
- Specified by:
setSettings
in interface DAOInterface
- Overrides:
setSettings
in class BaseDAO
loadSettings
public Settings loadSettings(Settings settings)
throws java.lang.Exception
- Specified by:
loadSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
loadSettings
public java.util.Collection loadSettings()
throws DataAccessException
- Specified by:
loadSettings
in interface SettingsDAO
- Throws:
DataAccessException
updateSettings
public Settings updateSettings(java.util.Map newSettings,
Settings settings,
Setting setting)
throws java.lang.Exception
- Specified by:
updateSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
generateSettingsMap
public java.util.HashMap generateSettingsMap(java.util.List results)
throws java.lang.Exception
- Throws:
java.lang.Exception
insertSetting
public void insertSetting()
throws DataAccessException
- Specified by:
insertSetting
in interface SettingsDAO
- Throws:
DataAccessException
insertSetting
public void insertSetting(boolean commit)
throws DataAccessException
- Specified by:
insertSetting
in interface SettingsDAO
- Throws:
DataAccessException
loadSettingFromID
public void loadSettingFromID()
throws java.lang.Exception
- Specified by:
loadSettingFromID
in interface SettingsDAO
- Throws:
java.lang.Exception
updateSetting
public void updateSetting()
throws DataAccessException
- Specified by:
updateSetting
in interface SettingsDAO
- Throws:
DataAccessException
updateSetting
public void updateSetting(boolean commit)
throws DataAccessException
- Specified by:
updateSetting
in interface SettingsDAO
- Throws:
DataAccessException
deleteSetting
public void deleteSetting()
throws DataAccessException
- Specified by:
deleteSetting
in interface SettingsDAO
- Throws:
DataAccessException
deleteSetting
public void deleteSetting(boolean commit)
throws DataAccessException
- Specified by:
deleteSetting
in interface SettingsDAO
- Throws:
DataAccessException
loadSettingsAndCount
public java.util.Map loadSettingsAndCount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadSettingsAndCount
in interface SettingsDAO
- Throws:
java.lang.Exception
processCommonCriteria
public org.hibernate.Criteria processCommonCriteria(org.hibernate.Criteria crit,
java.util.Map parameters)
- Overrides:
processCommonCriteria
in class BaseAdminGatewayDAOHibernate
editDeleteUserSettings
public void editDeleteUserSettings(java.util.Map parameters,
BusinessObjectFactory bof)
throws java.lang.Exception
- Specified by:
editDeleteUserSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
Copyright © SoftSlate, LLC 20032005