Class CommonTokenValue
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.dto.CommonTokenValue
-
- All Implemented Interfaces:
java.lang.Comparable<CommonTokenValue>
public class CommonTokenValue extends java.lang.Object implements java.lang.Comparable<CommonTokenValue>
DTO representing a record in COMMON_TOKEN_VALUES. These values are generated when processing data fromTransactionDataImpl
to collect a unique set of records we need to insert into COMMON_TOKEN_VALUES table (if the row doesn't already exist). The select/inserts must always be done in a deterministic order to minimize the chance of a deadlock, hence the object is Comparable to give it a natural sort order.
-
-
Constructor Summary
Constructors Constructor Description CommonTokenValue(java.lang.String codeSystem, int codeSystemId, java.lang.String tokenValue)
Construct a common token value from a codeSystemId and tokenValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CommonTokenValue other)
boolean
equals(java.lang.Object other)
int
getCodeSystemId()
java.lang.String
getTokenValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getCodeSystemId
public int getCodeSystemId()
- Returns:
- the codeSystemId
-
getTokenValue
public java.lang.String getTokenValue()
- Returns:
- the tokenValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(CommonTokenValue other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CommonTokenValue>
-
-