| java.lang.Object simpleorm.properties.SPropertyMap
All known Subclasses: simpleorm.core.SFieldMeta, simpleorm.core.SResultSet, simpleorm.core.SConnection, simpleorm.core.SRecordMeta,
SPropertyMap | public class SPropertyMap (Code) | | A property map similar to java.util.Propeties except that the keys
are SProperty objects, and inheritance is supported.
Note that the map is SProperty --> Object directly.
SPropertyValues instances are not stored directly in this map, they
are picked appart into propety and value which are stored
separately. ## Should they be?
|
getBoolean | public boolean getBoolean(SProperty prop)(Code) | | Convenient routine for getting boolean properties. Default is
always false.
|
getProperty | public Object getProperty(SProperty prop)(Code) | | Gets the value of prop for this map. May return a default value
if none has been explicitly set.
|
putDefaultProperty | public Object putDefaultProperty(SProperty prop, Object value)(Code) | | Sets prop to value for this map provided that it does not
already have an explicit value in this map.
Either way returns the value of the property now.
|
putProperty | public void putProperty(SProperty prop, Object value)(Code) | | Sets prop to value for this map after validating it. May or may
not already exist. If value is null then removes the property,
so a property cannot actually be set to null -- once removed it
may start defaulting.
|
remove | public void remove(SProperty prop)(Code) | | Removes the value in this Map only. It may still be inheritable
from other maps or have a default value. This is quite
different from setting the value to null.
|
setPropertyValue | public void setPropertyValue(SPropertyValue pval)(Code) | | Convenience method that sets this mmap to this property value pair.
|
setPropertyValues | public void setPropertyValues(SPropertyValue[] pvals)(Code) | | Convenience method that sets this map to each property value pair.
|
|
|