Class CommonTokenValue
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.dto.CommonTokenValue
-
- All Implemented Interfaces:
Comparable<CommonTokenValue>
public class CommonTokenValue extends Object implements 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(String codeSystem, int codeSystemId, 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(Object other)
int
getCodeSystemId()
String
getTokenValue()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getCodeSystemId
public int getCodeSystemId()
- Returns:
- the codeSystemId
-
getTokenValue
public String getTokenValue()
- Returns:
- the tokenValue
-
compareTo
public int compareTo(CommonTokenValue other)
- Specified by:
compareTo
in interfaceComparable<CommonTokenValue>
-
-