com.softslate.commerce.businessobjects.core
Class SettingBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.core.SettingBean
All Implemented Interfaces:
BusinessObject, BusinessProcessor, Setting, java.io.Serializable

public class SettingBean
extends BaseBusinessProcessor
implements Setting, java.io.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:
Serialized Form

Field Summary
private  java.lang.String code
          The code for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String description
          The description for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.Integer integerValue
          The integerValue for this SettingBean, when used as an interface to the sscSetting database table.
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String mediumValue
          The mediumValue for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String name
          The name for this SettingBean, when used as an interface to the sscSetting database table.
private static long serialVersionUID
           
private  int settingID
          The settingID for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String smallValue
          The smallValue for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String textValue
          The textValue for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String type
          The type for this SettingBean, when used as an interface to the sscSetting database table.
private  java.lang.String valueType
          The value type for this SettingBean, when used as an interface to the sscSetting database table.
 
Constructor Summary
SettingBean()
           
 
Method Summary
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 java.lang.Integer getIntegerValue()
           
 java.lang.String getMediumValue()
           
 java.lang.String getName()
           
 int getSettingID()
           
 java.lang.String getSmallValue()
           
 java.lang.String getTextValue()
           
 java.lang.String getType()
           
 java.lang.String getValueType()
           
 void setCode(java.lang.String code)
           
 void setDescription(java.lang.String description)
           
 void setIntegerValue(java.lang.Integer integerValue)
           
 void setMediumValue(java.lang.String mediumValue)
           
 void setName(java.lang.String name)
           
 void setSettingID(int settingID)
           
 void setSmallValue(java.lang.String smallValue)
           
 void setTextValue(java.lang.String textValue)
           
 void setType(java.lang.String type)
           
 void setValueType(java.lang.String valueType)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, updateOrderTotals, updateOrderTotals, utils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

settingID

private int settingID
The settingID for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.settingID.


code

private java.lang.String code
The code for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.code.


name

private java.lang.String name
The name for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.name.


description

private java.lang.String description
The description for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.description.


type

private java.lang.String type
The type for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.type.


valueType

private java.lang.String valueType
The value type for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.valueType.


integerValue

private java.lang.Integer integerValue
The integerValue for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.integerValue.


smallValue

private java.lang.String smallValue
The smallValue for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.smallValue.


mediumValue

private java.lang.String mediumValue
The mediumValue for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.mediumValue.


textValue

private java.lang.String textValue
The textValue for this SettingBean, when used as an interface to the sscSetting database table. Corresponds to sscSetting.textValue.

Constructor Detail

SettingBean

public SettingBean()
Method Detail

getSettingID

public int getSettingID()
Specified by:
getSettingID in interface Setting

setSettingID

public void setSettingID(int settingID)
Specified by:
setSettingID in interface Setting

getCode

public java.lang.String getCode()
Specified by:
getCode in interface Setting

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface Setting

getName

public java.lang.String getName()
Specified by:
getName in interface Setting

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Setting

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Setting

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface Setting

getType

public java.lang.String getType()
Specified by:
getType in interface Setting

setType

public void setType(java.lang.String type)
Specified by:
setType in interface Setting

getValueType

public java.lang.String getValueType()
Specified by:
getValueType in interface Setting

setValueType

public void setValueType(java.lang.String valueType)
Specified by:
setValueType in interface Setting

getIntegerValue

public java.lang.Integer getIntegerValue()
Specified by:
getIntegerValue in interface Setting

setIntegerValue

public void setIntegerValue(java.lang.Integer integerValue)
Specified by:
setIntegerValue in interface Setting

getSmallValue

public java.lang.String getSmallValue()
Specified by:
getSmallValue in interface Setting

setSmallValue

public void setSmallValue(java.lang.String smallValue)
Specified by:
setSmallValue in interface Setting

getMediumValue

public java.lang.String getMediumValue()
Specified by:
getMediumValue in interface Setting

setMediumValue

public void setMediumValue(java.lang.String mediumValue)
Specified by:
setMediumValue in interface Setting

getTextValue

public java.lang.String getTextValue()
Specified by:
getTextValue in interface Setting

setTextValue

public void setTextValue(java.lang.String textValue)
Specified by:
setTextValue in interface Setting


Copyright © SoftSlate, LLC 2003–2005