org.openmrs
Class ConceptDescription

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.ConceptDescription
All Implemented Interfaces:
java.io.Serializable, Auditable, OpenmrsObject

public class ConceptDescription
extends BaseOpenmrsObject
implements Auditable, java.io.Serializable

ConceptDescription is the localized description of a concept.

See Also:
Serialized Form

Constructor Summary
ConceptDescription()
          default constructor
ConceptDescription(java.lang.Integer conceptDescriptionId)
          Constructor that takes in the primary key for this object
ConceptDescription(java.lang.String description, java.util.Locale locale)
          Constructor specifying the description and locale.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 User getChangedBy()
           
 Concept getConcept()
           
 java.lang.Integer getConceptDescriptionId()
           
 User getCreator()
           
 java.util.Date getDateChanged()
           
 java.util.Date getDateCreated()
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
           
 java.util.Locale getLocale()
           
 int hashCode()
           
 void setChangedBy(User changedBy)
           
 void setConcept(Concept concept)
           
 void setConceptDescriptionId(java.lang.Integer conceptDescriptionId)
           
 void setCreator(User creator)
           
 void setDateChanged(java.util.Date dateChanged)
          Sets the date when the description was changed.
 void setDateCreated(java.util.Date dateCreated)
           
 void setDescription(java.lang.String description)
           
 void setId(java.lang.Integer id)
           
 void setLocale(java.util.Locale locale)
           
 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
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Constructor Detail

ConceptDescription

public ConceptDescription()
default constructor


ConceptDescription

public ConceptDescription(java.lang.Integer conceptDescriptionId)
Constructor that takes in the primary key for this object

Parameters:
conceptDescriptionId - the id for this description

ConceptDescription

public ConceptDescription(java.lang.String description,
                          java.util.Locale locale)
Constructor specifying the description and locale.

Parameters:
description -
locale -
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)
Expected behavior:
compare on id if its non null, not return true with different objects and null ids, default to object equality

hashCode

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

getConceptDescriptionId

public java.lang.Integer getConceptDescriptionId()
Returns:
Returns the conceptDescriptionId.

setConceptDescriptionId

public void setConceptDescriptionId(java.lang.Integer conceptDescriptionId)
Parameters:
conceptDescriptionId - The conceptId to set.

getConcept

public Concept getConcept()

setConcept

public void setConcept(Concept concept)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getLocale

public java.util.Locale getLocale()

setLocale

public void setLocale(java.util.Locale locale)

getCreator

public User getCreator()
Specified by:
getCreator in interface Auditable
Returns:
Returns the creator.

setCreator

public void setCreator(User creator)
Specified by:
setCreator in interface Auditable
Parameters:
creator - The creator to set.

getDateCreated

public java.util.Date getDateCreated()
Specified by:
getDateCreated in interface Auditable
Returns:
Returns the dateCreated.

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Specified by:
setDateCreated in interface Auditable
Parameters:
dateCreated - The dateCreated to set.

getChangedBy

public User getChangedBy()
Specified by:
getChangedBy in interface Auditable
Returns:
Returns the User who last changed the description.

setChangedBy

public void setChangedBy(User changedBy)
Specified by:
setChangedBy in interface Auditable
Parameters:
changedBy - The user who changed this description

getDateChanged

public java.util.Date getDateChanged()
Specified by:
getDateChanged in interface Auditable
Returns:
Returns the date the description was last changed.

setDateChanged

public void setDateChanged(java.util.Date dateChanged)
Sets the date when the description was changed.

Specified by:
setDateChanged in interface Auditable
Parameters:
dateChanged - the data the description was changed.

toString

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

getId

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

setId

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

OpenMRS-1.7.x

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