org.openmrs
Class ConceptMap

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

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

The concept map object represents a mapping of Concept to ConceptSource. A concept can have 0 to N mappings to any and all concept sources in the database.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptMap()
          default constructor
ConceptMap(java.lang.Integer conceptMapId)
          constructor with concept map id
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 User getChangedBy()
          Not currently used.
 java.lang.String getComment()
           
 Concept getConcept()
           
 java.lang.Integer getConceptMapId()
           
 User getCreator()
           
 java.util.Date getDateChanged()
          Not currently used.
 java.util.Date getDateCreated()
           
 java.lang.Integer getId()
           
 ConceptSource getSource()
           
 java.lang.String getSourceCode()
           
 int hashCode()
           
 void setChangedBy(User changedBy)
          Not currently used.
 void setComment(java.lang.String comment)
           
 void setConcept(Concept concept)
           
 void setConceptMapId(java.lang.Integer conceptMapId)
           
 void setCreator(User creator)
           
 void setDateChanged(java.util.Date dateChanged)
          Not currently used.
 void setDateCreated(java.util.Date dateCreated)
           
 void setId(java.lang.Integer id)
           
 void setSource(ConceptSource source)
           
 void setSourceCode(java.lang.String sourceCode)
           
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ConceptMap

public ConceptMap()
default constructor


ConceptMap

public ConceptMap(java.lang.Integer conceptMapId)
constructor with concept map id

Method Detail

equals

public boolean equals(java.lang.Object obj)
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()

getConcept

public Concept getConcept()
Returns:
the concept

setConcept

public void setConcept(Concept concept)
Parameters:
concept - the concept to set

getComment

public java.lang.String getComment()
Returns:
Returns the comment.

setComment

public void setComment(java.lang.String comment)
Parameters:
comment - The comment to set.

getConceptMapId

public java.lang.Integer getConceptMapId()
Returns:
Returns the conceptMapId.

setConceptMapId

public void setConceptMapId(java.lang.Integer conceptMapId)
Parameters:
conceptMapId - The conceptMapId to set.

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.

getSource

public ConceptSource getSource()
Returns:
Returns the source.

setSource

public void setSource(ConceptSource source)
Parameters:
source - The source to set.

getSourceCode

public java.lang.String getSourceCode()
Returns:
Returns the sourceCode.

setSourceCode

public void setSourceCode(java.lang.String sourceCode)
Parameters:
sourceCode - The sourceCode to set.

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)

getChangedBy

public User getChangedBy()
Not currently used. Always returns null.

Specified by:
getChangedBy in interface Auditable
Returns:
User - the user who last changed the object
See Also:
Auditable.getChangedBy()

getDateChanged

public java.util.Date getDateChanged()
Not currently used. Always returns null.

Specified by:
getDateChanged in interface Auditable
Returns:
Date - the date the object was last changed
See Also:
Auditable.getDateChanged()

setChangedBy

public void setChangedBy(User changedBy)
Not currently used.

Specified by:
setChangedBy in interface Auditable
Parameters:
changedBy - - the user who last changed the object
See Also:
Auditable.setChangedBy(org.openmrs.User)

setDateChanged

public void setDateChanged(java.util.Date dateChanged)
Not currently used.

Specified by:
setDateChanged in interface Auditable
Parameters:
dateChanged - - the date the object was last changed
See Also:
Auditable.setDateChanged(java.util.Date)

OpenMRS-1.7.x

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