public class SettingTable<T extends Setting> extends SettingTableBase<Setting>
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.
| 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 |
| Modifier and Type | Class and Description |
|---|---|
static class |
SettingTable.UnsetException
Thrown when a
Setting requested has not been set. |
| Constructor and Description |
|---|
SettingTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
defaultCacheLimit, defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, ensure, getIdColumn, getNameColumn, getPoemDatabaseTables, getSettingObject, getSettingObject, getValueColumn, initgetDescriptionColumn, getDisplaynameColumn, getHeightColumn, getNullableColumn, getPrecisionColumn, getRangelimit_stringColumn, getRangelow_stringColumn, getRenderinfoColumn, getScaleColumn, getSizeColumn, getTypefactoryColumn, getUsereditableColumn, getValueInfoObject, getValueInfoObject, getWidthColumnpostInitialiseaddColumnAndCommit, addListener, appendWhereClause, cachedCount, cachedCount, cachedCount, cachedCount, cachedCount, cachedCount, cachedExists, cachedSelection, cachedSelectionField, cachedSelectionType, canDeleteColumn, canReadColumn, canSelectColumn, canWriteColumn, clearColumnInfoCaches, cnfWhereClause, cnfWhereClause, columns, columnWithColumnInfoID, count, count, count, count, countSQL, countSQL, create, create, createTableInfo, dbAddConstraints, dbModifyStructure, defaultDisplayName, defaultOrderByClause, defineColumn, delete_unsafe, delete, deleteColumnAndCommit, deletedColumn, displayColumn, displayColumns, displayColumnsCount, dump, dump, dumpCacheAnalysis, equals, exists, exists, extrasCount, firstSelection, getCacheInfo, getCanCreate, getCategory, getColumn, getColumns, getColumnsCount, getDatabase, getDbmsTableType, getDefaultCanDelete, getDefaultCanRead, getDefaultCanWrite, getDescription, getDetailDisplayColumns, getDetailDisplayColumnsCount, getDisplayName, getInfo, getMostRecentTroid, getName, getNextExtrasIndex, getObject, getObject, getRecordDisplayColumns, getRecordDisplayColumnsCount, getSearchCriterionColumns, getSearchCriterionColumnsCount, getSummaryDisplayColumns, getSummaryDisplayColumnsCount, getTableInfo, hashCode, invalidateTransactionStuffs, load, maybeFirst, newPersistent, notifyColumnInfo, notifyTouched, primaryCriterionColumn, quotedName, readLock, referencesTo, referencesTo, rememberAllTroids, selection, selection, selection, selection, selection, selection, selectionSQL, serial, setCacheLimit, setDisplayColumn, setSearchColumn, setTableInfo, tableInfoID, toString, trimCache, troidColumn, troidFor, troidSelection, troidSelection, troidSelection, uncache, unifyWithColumnInfo, unifyWithDB, unifyWithMetadata, whereClause, whereClause, writeDownpublic SettingTable(Database database, String name, DefinitionSource definitionSource) throws PoemException
database - the POEM database we are usingname - the name of this TabledefinitionSource - which definition is being usedPoemException - if anything goes wrongpublic Object getCooked(String name)
name - the name field of this Setting objectpublic String get(String name)
name - the name field of the Setting objectpublic Object getOrDie(String name)
name - the Setting's name fieldpublic 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 settingpublic 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 settingensure(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 settingensure(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 settingensure(String, PoemTypeFactory, Object, String, String)Copyright © 2000–2021 PanEris. All rights reserved.