Class SettingBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.core.SettingBean
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,Setting
,Serializable
Represents a single setting used by the application.
SettingBean
is the default implementation of the Setting
interface for the
application.
The various settings represent everything from the default colors and fonts used by the display templates, to logical settings defining the behavior of various parts of the application.
The database stores settings in the sscSetting
table, and this
class can be used to represent a single row of that table. The Hibernate
configuration file SettingBean.hbm.xml
maps that table's
columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The code for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The description for thisSettingBean
, when used as an interface to thesscSetting
database table.private Integer
The integerValue for thisSettingBean
, when used as an interface to thesscSetting
database table.(package private) static org.apache.commons.logging.Log
private String
The mediumValue for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The name for thisSettingBean
, when used as an interface to thesscSetting
database table.private static final long
private int
The settingID for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The smallValue for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The textValue for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The type for thisSettingBean
, when used as an interface to thesscSetting
database table.private String
The value type for thisSettingBean
, when used as an interface to thesscSetting
database table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
getName()
int
getType()
void
void
setDescription
(String description) void
setIntegerValue
(Integer integerValue) void
setMediumValue
(String mediumValue) void
void
setSettingID
(int settingID) void
setSmallValue
(String smallValue) void
setTextValue
(String textValue) void
void
setValueType
(String valueType) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
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.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
settingID
private int settingIDThe settingID for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.settingID
. -
code
The code for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.code
. -
name
The name for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.name
. -
description
The description for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.description
. -
type
The type for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.type
. -
valueType
The value type for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.valueType
. -
integerValue
The integerValue for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.integerValue
. -
smallValue
The smallValue for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.smallValue
. -
mediumValue
The mediumValue for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.mediumValue
. -
textValue
The textValue for thisSettingBean
, when used as an interface to thesscSetting
database table. Corresponds tosscSetting.textValue
.
-
-
Constructor Details
-
SettingBean
public SettingBean()
-
-
Method Details
-
getSettingID
public int getSettingID()- Specified by:
getSettingID
in interfaceSetting
-
setSettingID
public void setSettingID(int settingID) - Specified by:
setSettingID
in interfaceSetting
-
getCode
-
setCode
-
getName
-
setName
-
getDescription
- Specified by:
getDescription
in interfaceSetting
-
setDescription
- Specified by:
setDescription
in interfaceSetting
-
getType
-
setType
-
getValueType
- Specified by:
getValueType
in interfaceSetting
-
setValueType
- Specified by:
setValueType
in interfaceSetting
-
getIntegerValue
- Specified by:
getIntegerValue
in interfaceSetting
-
setIntegerValue
- Specified by:
setIntegerValue
in interfaceSetting
-
getSmallValue
- Specified by:
getSmallValue
in interfaceSetting
-
setSmallValue
- Specified by:
setSmallValue
in interfaceSetting
-
getMediumValue
- Specified by:
getMediumValue
in interfaceSetting
-
setMediumValue
- Specified by:
setMediumValue
in interfaceSetting
-
getTextValue
- Specified by:
getTextValue
in interfaceSetting
-
setTextValue
- Specified by:
setTextValue
in interfaceSetting
-