com.softslate.commerce.daos.core
Class SettingsDAOBasic
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.SettingsDAOBasic
- All Implemented Interfaces:
- DAOInterface, SettingsDAO
- public class SettingsDAOBasic
- extends BaseDAO
- implements SettingsDAO
Generic DAO for setting and retrieving settings from the database.
- Author:
- David Tobey
Fields inherited from class com.softslate.commerce.daos.core.BaseDAO |
|
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO |
formatDateTime, getConnection, getDaoFactory, getDataSource, getSQL, getSqlMap, initialize, parseDateTime, setConnection, setDaoFactory, setDataSource, setSqlMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL
final int ALL
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
type
private int type
settingsBean
private SettingsBean settingsBean
SettingsDAOBasic
public SettingsDAOBasic()
getType
public int getType()
- Specified by:
getType
in interface SettingsDAO
setType
public void setType(int type)
- Specified by:
setType
in interface SettingsDAO
getSettingsBean
public SettingsBean getSettingsBean()
- Description copied from interface:
DAOInterface
- Retrieves the
SettingsBean
previously set for this data
access object.
- Specified by:
getSettingsBean
in interface DAOInterface
- Overrides:
getSettingsBean
in class BaseDAO
setSettingsBean
public void setSettingsBean(SettingsBean settingsBean)
- Specified by:
setSettingsBean
in interface DAOInterface
- Overrides:
setSettingsBean
in class BaseDAO
loadSettings
public SettingsBean loadSettings(SettingsBean settingsBean)
throws java.lang.Exception
- Specified by:
loadSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
loadSettings
public java.util.Collection loadSettings()
throws java.lang.Exception
- Specified by:
loadSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
generateSettingsMap
public java.util.HashMap generateSettingsMap(java.sql.ResultSet resultSet)
throws java.lang.Exception
- Specified by:
generateSettingsMap
in interface SettingsDAO
- Throws:
java.lang.Exception
updateSettings
public SettingsBean updateSettings(java.util.Map settings)
throws java.lang.Exception
- Specified by:
updateSettings
in interface SettingsDAO
- Throws:
java.lang.Exception
updateSetting
public void updateSetting()
throws java.lang.Exception
- Throws:
java.lang.Exception
updateSetting
public void updateSetting(boolean commit)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © SoftSlate, Inc. 20032005