|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Settings
Interface representing application settings stored in the database.
While Setting
is used as a direct interface to the
sscSetting
database table, this interface's methods are what
the rest of the application actually uses to retrieve settings. The
getValue
method looks up a given setting in a Map
returned by this interface's getMap
method. The keys of this
Map
correspond to the code
field of the
sscSetting
database table. The values correspond to the value
field (integerValue
, smallValue
,
mediumValue
, or textValue
) that corresponds
with the value of the valueType
field.
The default "settingsImplementer" is
SettingsBean
.
Method Summary | |
---|---|
java.util.Map |
getMap()
Retrieves the map of settings values for this Settings
instance. |
java.lang.Object |
getValue(java.lang.String key)
Gets the value of a given key in this Settings '
map . |
void |
initialize()
Initializes this Settings instance. |
void |
setMap(java.util.Map map)
Sets the map of settings values for this Settings
instance. |
void |
setValue(java.lang.String key,
java.lang.Object value)
Sets the value of a given key in this Settings '
map . |
Method Detail |
---|
java.util.Map getMap()
Settings
instance. The keys of this Map
correspond to the
code
field of the sscSetting
database
table. The values correspond to value field (integerValue
,
smallValue
, mediumValue
, or
textValue
) that corresponds with the value of the
valueType
field.
Map
of settings keys and values for this
Settings
instance.void setMap(java.util.Map map)
Settings
instance.
void setValue(java.lang.String key, java.lang.Object value)
Settings
'
map
.
key
- The key whose value is being setvalue
- The value.
java.lang.Exception
java.lang.Object getValue(java.lang.String key)
Settings
'
map
.
key
- The key whose value is to be retrieved.
java.lang.Exception
void initialize() throws java.lang.Exception
Settings
instance. Populates the
map
property with the results of a query on the
sscSetting
database table.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |