Class ShardingMetadata.SubKeyMetadata

    • Constructor Summary

      Constructors 
      Constructor Description
      SubKeyMetadata​(int index, java.sql.SQLType dataType, int charSet)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(ShardingMetadata.SubKeyMetadata o)
      Method used to defined natural ordering for the sub key column info based on the column index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubKeyMetadata

        public SubKeyMetadata​(int index,
                              java.sql.SQLType dataType,
                              int charSet)
        Parameters:
        index - column index of the subkey
        dataType - type of the subkey to be constructed
        charSet - character set of the subkey in the database
    • Method Detail

      • compareTo

        public int compareTo​(ShardingMetadata.SubKeyMetadata o)
        Method used to defined natural ordering for the sub key column info based on the column index.
        Specified by:
        compareTo in interface java.lang.Comparable<ShardingMetadata.SubKeyMetadata>
        Parameters:
        o - SubKeyMetadata to which this object is to be compared.
        Returns:
        -1, 0 or 1 as this metadata is less than, equal to, or greater than the metadata that is passed in as a method parameter
        See Also:
        Comparable.compareTo(java.lang.Object)