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 int
compareTo(CodeSystemValue that)
boolean
equals(java.lang.Object obj)
java.lang.String
getCodeSystem()
java.lang.Integer
getCodeSystemId()
int
hashCode()
void
setCodeSystemId(int codeSystemId)
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(CodeSystemValue that)
- Specified by:
compareTo
in 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
-
-