public class ConceptReferenceTermMap extends BaseConceptMap implements java.io.Serializable
| Constructor and Description |
|---|
ConceptReferenceTermMap()
default constructor
|
ConceptReferenceTermMap(ConceptReferenceTerm termB,
ConceptMapType conceptMapType)
Convenience constructor that takes the term to be mapped to and the type of the map
|
ConceptReferenceTermMap(java.lang.Integer conceptReferenceTermMapId)
constructor with concept reference term map id
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if and only if x and y refer to the same
object (x == y has the value true) or both have the same
uuid (((x.uuid != null) && x.uuid.equals(y.uuid)) has the value
true). |
java.lang.Integer |
getConceptReferenceTermMapId() |
java.lang.Integer |
getId() |
ConceptReferenceTerm |
getTermA() |
ConceptReferenceTerm |
getTermB() |
int |
hashCode()
Returns a hash code based on the
uuid field. |
void |
setConceptReferenceTermMapId(java.lang.Integer conceptReferenceTermMapId) |
void |
setId(java.lang.Integer id) |
void |
setTermA(ConceptReferenceTerm termA) |
void |
setTermB(ConceptReferenceTerm termB) |
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 ]. |
getChangedBy, getConceptMapType, getCreator, getDateChanged, getDateCreated, setChangedBy, setConceptMapType, setCreator, setDateChanged, setDateCreatedgetUuid, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic ConceptReferenceTermMap()
public ConceptReferenceTermMap(java.lang.Integer conceptReferenceTermMapId)
public ConceptReferenceTermMap(ConceptReferenceTerm termB, ConceptMapType conceptMapType)
termB - the other concept reference term to map toconceptMapType - the concept map type for this concept reference term mappublic java.lang.Integer getConceptReferenceTermMapId()
public void setConceptReferenceTermMapId(java.lang.Integer conceptReferenceTermMapId)
conceptReferenceTermMapId - the conceptReferenceTermMapId to setpublic ConceptReferenceTerm getTermA()
public void setTermA(ConceptReferenceTerm termA)
termA - the termA to setpublic ConceptReferenceTerm getTermB()
public void setTermB(ConceptReferenceTerm termB)
termB - the termB to setpublic java.lang.Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(java.lang.Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public boolean equals(java.lang.Object obj)
BaseOpenmrsObjecttrue if and only if x and y refer to the same
object (x == y has the value true) or both have the same
uuid (((x.uuid != null) && x.uuid.equals(y.uuid)) has the value
true).equals in class BaseOpenmrsObjectObject.equals(java.lang.Object)public int hashCode()
BaseOpenmrsObjectuuid field.
If the uuid field is null, it delegates to
Object.hashCode().
hashCode in class BaseOpenmrsObjectObject.hashCode()public java.lang.String toString()
BaseOpenmrsObjectuuid 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 BaseOpenmrsObjectObject.toString()Copyright © 2018 OpenMRS Inc.. All Rights Reserved.