Package oracle.jdbc.pool
Class ShardingMetadata.SubKeyMetadata
- java.lang.Object
-
- oracle.jdbc.pool.ShardingMetadata.SubKeyMetadata
-
- All Implemented Interfaces:
java.lang.Comparable<ShardingMetadata.SubKeyMetadata>
- Enclosing class:
- ShardingMetadata
public static class ShardingMetadata.SubKeyMetadata extends java.lang.Object implements java.lang.Comparable<ShardingMetadata.SubKeyMetadata>
Holds the shard sub key metadata information extracted from the database.
-
-
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.
-
-
-
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 interfacejava.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)
-
-