Class CodeSystemValue
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.params.model.CodeSystemValue
-
- All Implemented Interfaces:
java.lang.Comparable<CodeSystemValue>
public class CodeSystemValue extends java.lang.Object implements java.lang.Comparable<CodeSystemValue>
Holder for the code_system_id obtained from the database. This is modelled as a mutable record so that we can reference this record many times, and resolve it once (either from cache lookup, database lookup, or a database create).
-
-
Constructor Summary
Constructors Constructor Description CodeSystemValue(java.lang.String codeSystem)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CodeSystemValue that)booleanequals(java.lang.Object obj)java.lang.StringgetCodeSystem()java.lang.IntegergetCodeSystemId()inthashCode()voidsetCodeSystemId(int codeSystemId)
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(CodeSystemValue that)
- Specified by:
compareToin interfacejava.lang.Comparable<CodeSystemValue>
-
getCodeSystemId
public java.lang.Integer getCodeSystemId()
- Returns:
- the codeSystemId or null if it is current unknown
-
setCodeSystemId
public void setCodeSystemId(int codeSystemId)
- Parameters:
codeSystemId- the codeSystemId to set
-
getCodeSystem
public java.lang.String getCodeSystem()
- Returns:
- the codeSystem
-
-