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 Constructor Description SubKeyMetadata(int index, 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.
-
-
-
Constructor Detail
-
SubKeyMetadata
public SubKeyMetadata(int index, SQLType dataType, int charSet)
- Parameters:
index
- column index of the subkeydataType
- type of the subkey to be constructedcharSet
- 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 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:
Comparable.compareTo(java.lang.Object)
-
-