Class 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 from TransactionDataImpl 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 Detail

      • CommonTokenValue

        public CommonTokenValue​(java.lang.String codeSystem,
                                int codeSystemId,
                                java.lang.String tokenValue)
        Construct a common token value from a codeSystemId and tokenValue
        Parameters:
        codeSystemId -
        tokenValue -
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object