|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.JdbcTable org.melati.poem.PoemTable org.melati.poem.generated.ValueInfoTableBase org.melati.poem.ValueInfoTable org.melati.poem.generated.SettingTableBase org.melati.poem.SettingTable
public class SettingTable
A Table
which is used like a properties file.
Every Melati DB has one.
Extended from a Melati POEM generated stub.
Description: A configurable setting for the application.
Field summary for SQL table Setting
| ||
---|---|---|
Name | Type | Description |
id | Integer | The Table Row Object ID |
name | String | A code name for this setting |
value | String | The value of this setting |
Nested Class Summary | |
---|---|
static class |
SettingTable.UnsetException
Thrown when a Setting requested has not been set. |
Constructor Summary | |
---|---|
SettingTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor. |
Method Summary | |
---|---|
Setting |
ensure(String name,
boolean value,
String displayname,
String description)
Convenience method. |
Setting |
ensure(String name,
int value,
String displayname,
String description)
Convenience method. |
Setting |
ensure(String name,
PoemTypeFactory typefactory,
Object value,
String displayname,
String description)
Make sure that a setting with this name exists, if not then create it. |
Setting |
ensure(String name,
String value,
String displayname,
String description)
Convenience method. |
String |
get(String name)
Get the String representation of the setting. |
Object |
getCooked(String name)
Get an object of the appropriate type by name. |
Object |
getOrDie(String name)
Get a set value. |
Methods inherited from class org.melati.poem.generated.SettingTableBase |
---|
_newPersistent, defaultCacheLimit, defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, getIdColumn, getNameColumn, getPoemDatabaseTables, getSettingObject, getSettingObject, getValueColumn, init |
Methods inherited from class org.melati.poem.generated.ValueInfoTableBase |
---|
getDescriptionColumn, getDisplaynameColumn, getHeightColumn, getNullableColumn, getPrecisionColumn, getRangelimit_stringColumn, getRangelow_stringColumn, getRenderinfoColumn, getScaleColumn, getSizeColumn, getTypefactoryColumn, getUsereditableColumn, getValueInfoObject, getValueInfoObject, getWidthColumn |
Methods inherited from class org.melati.poem.PoemTable |
---|
postInitialise |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SettingTable(Database database, String name, DefinitionSource definitionSource) throws PoemException
database
- the POEM database we are usingname
- the name of this Table
definitionSource
- which definition is being used
PoemException
- if anything goes wrongMethod Detail |
---|
public Object getCooked(String name)
name
- the name field of this Setting object
public String get(String name)
name
- the name field of the Setting object
public Object getOrDie(String name)
name
- the Setting's name field
public Setting ensure(String name, PoemTypeFactory typefactory, Object value, String displayname, String description)
name
- the name of the Setting to ensuretypefactory
- what type to usevalue
- the value of this settingdisplayname
- a human readable namedescription
- the purpose of the setting
public Setting ensure(String name, String value, String displayname, String description)
name
- the name of the Setting to ensurevalue
- the value of this settingdisplayname
- a human readable namedescription
- the purpose of the setting
ensure(String, PoemTypeFactory, Object, String, String)
public Setting ensure(String name, int value, String displayname, String description)
name
- the name of the Setting to ensurevalue
- the value of this settingdisplayname
- a human readable namedescription
- the purpose of the setting
ensure(String, PoemTypeFactory, Object, String, String)
public Setting ensure(String name, boolean value, String displayname, String description)
name
- the name of the Setting to ensurevalue
- the value of this settingdisplayname
- a human readable namedescription
- the purpose of the setting
ensure(String, PoemTypeFactory, Object, String, String)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |