public class ConceptDescription extends BaseOpenmrsObject implements Auditable, java.io.Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public ConceptDescription()
public ConceptDescription(java.lang.Integer conceptDescriptionId)
conceptDescriptionId
- the id for this descriptionpublic ConceptDescription(java.lang.String description, java.util.Locale locale)
description
- locale
- public java.lang.Integer getConceptDescriptionId()
public void setConceptDescriptionId(java.lang.Integer conceptDescriptionId)
conceptDescriptionId
- The conceptId to set.public Concept getConcept()
public void setConcept(Concept concept)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
public User getCreator()
getCreator
in interface Auditable
public void setCreator(User creator)
setCreator
in interface Auditable
creator
- The creator to set.public java.util.Date getDateCreated()
getDateCreated
in interface Auditable
public void setDateCreated(java.util.Date dateCreated)
setDateCreated
in interface Auditable
dateCreated
- The dateCreated to set.public User getChangedBy()
getChangedBy
in interface Auditable
public void setChangedBy(User changedBy)
setChangedBy
in interface Auditable
changedBy
- The user who changed this descriptionpublic java.util.Date getDateChanged()
getDateChanged
in interface Auditable
public void setDateChanged(java.util.Date dateChanged)
setDateChanged
in interface Auditable
dateChanged
- the data the description was changed.public java.lang.String toString()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
toString
in class BaseOpenmrsObject
Object.toString()
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.