Package oracle.jdbc.pool
Class ShardingMetadata.SubKeyMetadata
java.lang.Object
oracle.jdbc.pool.ShardingMetadata.SubKeyMetadata
- All Implemented Interfaces:
Comparable<ShardingMetadata.SubKeyMetadata>
- Enclosing class:
- ShardingMetadata
public static class ShardingMetadata.SubKeyMetadata
extends Object
implements Comparable<ShardingMetadata.SubKeyMetadata>
Holds the shard sub key metadata information extracted from the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethod used to defined natural ordering for the sub key column info based on the column index.
-
Constructor Details
-
SubKeyMetadata
- Parameters:
index- column index of the subkeydataType- type of the subkey to be constructedcharSet- character set of the subkey in the database
-
-
Method Details
-
compareTo
Method used to defined natural ordering for the sub key column info based on the column index.- Specified by:
compareToin interfaceComparable<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:
-