stella.parameter
Class AbstractDatabaseValue

java.lang.Object
  extended by util.PropertyContainer
      extended by stella.parameter.AbstractParameter
          extended by stella.parameter.AbstractDatabaseParameter
              extended by stella.parameter.AbstractDatabaseValue
All Implemented Interfaces:
Cloneable, Parameter, Value, ExitCleaning, Initializable, PropertyBearing
Direct Known Subclasses:
NightClear

public abstract class AbstractDatabaseValue
extends AbstractDatabaseParameter
implements Value

This Value retrieves values from a database.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class stella.parameter.AbstractDatabaseParameter
KEY_ALLOWREOPEN
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
protected AbstractDatabaseValue(Map info)
          Constructs a abstract value.
 
Method Summary
 Number getValue()
          Links the Parameter.get() to the Value.getValue() method.
 Number setValue(Number number)
          Links the Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number) method.
 
Methods inherited from class stella.parameter.AbstractDatabaseParameter
exit, get, getFromOpenDatabase, init, set, setIntoOpenDatabase
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, rescanned, setName, toString
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.Parameter
get, getFormatted, getName, getString, set
 
Methods inherited from interface util.PropertyBearing
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Constructor Detail

AbstractDatabaseValue

protected AbstractDatabaseValue(Map info)
Constructs a abstract value. Used for constructor chaining.

Method Detail

getValue

public Number getValue()
Links the Parameter.get() to the Value.getValue() method.

Specified by:
getValue in interface Value

setValue

public Number setValue(Number number)
Links the Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number) method. If the argument cannot be cast into a number or is null an IllegalArgumentException is thrown.

Specified by:
setValue in interface Value