org.openmrs
Class GlobalProperty

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.GlobalProperty
All Implemented Interfaces:
OpenmrsObject

public class GlobalProperty
extends BaseOpenmrsObject

Global properties are simple key-value pairs persisted in the database GPs can be thought of as something similar to environment variables used in operating systems.


Constructor Summary
GlobalProperty()
          Default empty constructor
GlobalProperty(java.lang.String property)
          Constructor defining the key for this GP
GlobalProperty(java.lang.String property, java.lang.String value)
          Constructor defining the key and value of this GP
GlobalProperty(java.lang.String property, java.lang.String value, java.lang.String description)
          Constructor defining key/value/description for this GP
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
           
 java.lang.String getProperty()
           
 java.lang.String getPropertyValue()
           
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setId(java.lang.Integer id)
           
 void setProperty(java.lang.String property)
           
 void setPropertyValue(java.lang.String propertyValue)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalProperty

public GlobalProperty()
Default empty constructor


GlobalProperty

public GlobalProperty(java.lang.String property)
Constructor defining the key for this GP

Parameters:
property - key to name the property

GlobalProperty

public GlobalProperty(java.lang.String property,
                      java.lang.String value)
Constructor defining the key and value of this GP

Parameters:
property - key to name the property
value - value to give to the property

GlobalProperty

public GlobalProperty(java.lang.String property,
                      java.lang.String value,
                      java.lang.String description)
Constructor defining key/value/description for this GP

Parameters:
property - key to name the property
value - value to give to the property
description - description of how this property is used
Method Detail

getProperty

public java.lang.String getProperty()
Returns:
Returns the property.

setProperty

public void setProperty(java.lang.String property)
Parameters:
property - The property to set.

getPropertyValue

public java.lang.String getPropertyValue()
Returns:
Returns the propertyValue.

setPropertyValue

public void setPropertyValue(java.lang.String propertyValue)
Parameters:
propertyValue - The propertyValue to set.

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getId

public java.lang.Integer getId()
Returns:
id - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.getId()

setId

public void setId(java.lang.Integer id)
Parameters:
id - - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.setId(java.lang.Integer)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change