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 StringThe code for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe description for thisSettingBean, when used as an interface to thesscSettingdatabase table.private IntegerThe integerValue for thisSettingBean, when used as an interface to thesscSettingdatabase table.(package private) static org.apache.commons.logging.Logprivate StringThe mediumValue for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe name for thisSettingBean, when used as an interface to thesscSettingdatabase table.private static final longprivate intThe settingID for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe smallValue for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe textValue for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe type for thisSettingBean, when used as an interface to thesscSettingdatabase table.private StringThe value type for thisSettingBean, when used as an interface to thesscSettingdatabase table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getName()intgetType()voidvoidsetDescription(String description) voidsetIntegerValue(Integer integerValue) voidsetMediumValue(String mediumValue) voidvoidsetSettingID(int settingID) voidsetSmallValue(String smallValue) voidsetTextValue(String textValue) voidvoidsetValueType(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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 thesscSettingdatabase table. Corresponds tosscSetting.settingID. -
code
The code for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.code. -
name
The name for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.name. -
description
The description for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.description. -
type
The type for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.type. -
valueType
The value type for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.valueType. -
integerValue
The integerValue for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.integerValue. -
smallValue
The smallValue for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.smallValue. -
mediumValue
The mediumValue for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.mediumValue. -
textValue
The textValue for thisSettingBean, when used as an interface to thesscSettingdatabase table. Corresponds tosscSetting.textValue.
-
-
Constructor Details
-
SettingBean
public SettingBean()
-
-
Method Details
-
getSettingID
public int getSettingID()- Specified by:
getSettingIDin interfaceSetting
-
setSettingID
public void setSettingID(int settingID) - Specified by:
setSettingIDin interfaceSetting
-
getCode
-
setCode
-
getName
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceSetting
-
setDescription
- Specified by:
setDescriptionin interfaceSetting
-
getType
-
setType
-
getValueType
- Specified by:
getValueTypein interfaceSetting
-
setValueType
- Specified by:
setValueTypein interfaceSetting
-
getIntegerValue
- Specified by:
getIntegerValuein interfaceSetting
-
setIntegerValue
- Specified by:
setIntegerValuein interfaceSetting
-
getSmallValue
- Specified by:
getSmallValuein interfaceSetting
-
setSmallValue
- Specified by:
setSmallValuein interfaceSetting
-
getMediumValue
- Specified by:
getMediumValuein interfaceSetting
-
setMediumValue
- Specified by:
setMediumValuein interfaceSetting
-
getTextValue
- Specified by:
getTextValuein interfaceSetting
-
setTextValue
- Specified by:
setTextValuein interfaceSetting
-