| com.methodhead.persistable.Persistable com.methodhead.property.Property
Property | public class Property extends Persistable implements SiteContextCapable(Code) | | A name/value pair with convenient methods to get and set them.
- int sitecontext_id = 0
- String name = ""
- String value = ""
- String description = ""
- boolean system_property = false A flag indicating the property is a
system property; what that actually means is up to the application
|
Method Summary | |
public static String | getProperty(SiteContext siteContext, String name) Returns the value of property named name or null if the
property is not defined. | public String | getProperty(String name) Returns the value of property named name or null if the
property is not defined. | public static String | getProperty(SiteContext siteContext, String name, String defaultVal) Returns the value of property named name or defaultVal if
the property is not defined. | public static String[] | getPropertyArray(SiteContext siteContext, String name) Returns the property named name split on commas (e.g.,
"one,two,three") or null if the property is not defined. | public SiteContext | getSiteContext() | public static List | loadAll(SiteContext siteContext) Returns a list containing all defined properties in alphabetic order. | public List | loadAll() Returns a list containing all defined properties in alphabetic order. | public void | loadForName(String name) Loads the property named name. | public void | setProperty(String name, String value, String description, Boolean system) Updates the property name with value,
description, and system, overwriting any values there
already. | public static void | setProperty(SiteContext siteContext, String name, String value, String description, Boolean system) | public static void | setProperty(SiteContext siteContext, String name, String value) | public void | setSiteContext(SiteContext siteContext) |
Property | public Property()(Code) | | |
Property | public Property(DynaClass dynaClass)(Code) | | |
getProperty | public static String getProperty(SiteContext siteContext, String name)(Code) | | Returns the value of property named name or null if the
property is not defined.
|
getProperty | public String getProperty(String name)(Code) | | Returns the value of property named name or null if the
property is not defined.
|
getProperty | public static String getProperty(SiteContext siteContext, String name, String defaultVal)(Code) | | Returns the value of property named name or defaultVal if
the property is not defined.
|
getPropertyArray | public static String[] getPropertyArray(SiteContext siteContext, String name)(Code) | | Returns the property named name split on commas (e.g.,
"one,two,three") or null if the property is not defined.
Values are trimmed before being returned.
|
loadAll | public static List loadAll(SiteContext siteContext)(Code) | | Returns a list containing all defined properties in alphabetic order.
|
loadAll | public List loadAll()(Code) | | Returns a list containing all defined properties in alphabetic order.
|
loadForName | public void loadForName(String name)(Code) | | Loads the property named name.
|
setProperty | public void setProperty(String name, String value, String description, Boolean system)(Code) | | Updates the property name with value,
description, and system, overwriting any values there
already. If the property exists, each attribute is only updated if its
corresponding method argument is not null. If the property
doesn't exist and a method argument is null, its corresponding
attribute is set to an empty string (or false in
system's case). already.
|
Methods inherited from com.methodhead.persistable.Persistable | public static void deleteAll(DynaClass dynaClass, String whereClause) throws PersistableException(Code)(Java Doc) public void deleteAll(String whereClause) throws PersistableException(Code)(Java Doc) public boolean getBoolean(String property)(Code)(Java Doc) public Date getDate(String property)(Code)(Java Doc) public double getDouble(String property)(Code)(Java Doc) public int getInt(String property)(Code)(Java Doc) public static String getSqlLiteral(String value)(Code)(Java Doc) public static String getSqlLiteral(Boolean value)(Code)(Java Doc) public static String getSqlLiteral(Date value)(Code)(Java Doc) protected String getSqlLiteral(DynaProperty dynaProperty)(Code)(Java Doc) public String getString(String property)(Code)(Java Doc) public void load(String whereClause)(Code)(Java Doc) public static List loadAll(DynaClass dynaClass, String whereClause, String orderByClause)(Code)(Java Doc) public List loadAll(String whereClause, String orderByClause)(Code)(Java Doc) public void save(String whereClause) throws PersistableException(Code)(Java Doc) public void saveNew()(Code)(Java Doc) public void setAsObject(String property, Object value)(Code)(Java Doc) public void setAsString(String property, String value)(Code)(Java Doc) public void setBoolean(String property, boolean value)(Code)(Java Doc) public void setDate(String property, Date value)(Code)(Java Doc) public void setDouble(String property, double value)(Code)(Java Doc) public void setInt(String property, int value)(Code)(Java Doc) protected static void setProperty(DynaBean persistable, DynaProperty dynaProperty, ResultSet rs)(Code)(Java Doc) public void setString(String property, String value)(Code)(Java Doc)
|
|
|