Uses of Interface
java.sql.ShardingKey
Packages that use ShardingKey
Package
Description
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Provides the API for server side data source access and processing from
the Java programming language.
-
Uses of ShardingKey in java.sql
Methods in java.sql that return ShardingKeyModifier and TypeMethodDescriptionShardingKeyBuilder.build()Returns an instance of the object defined by this builder.Methods in java.sql with parameters of type ShardingKeyModifier and TypeMethodDescriptiondefault voidConnection.setShardingKey(ShardingKey shardingKey)Specifies a shardingKey to use with this Connectiondefault voidConnection.setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey)Specifies a shardingKey and superShardingKey to use with this Connectiondefault booleanConnection.setShardingKeyIfValid(ShardingKey shardingKey, int timeout)Sets and validates the sharding key for this connection.default booleanConnection.setShardingKeyIfValid(ShardingKey shardingKey, ShardingKey superShardingKey, int timeout)Sets and validates the sharding keys for this connection.ConnectionBuilder.shardingKey(ShardingKey shardingKey)Specifies ashardingKeyto be used when creating a connectionConnectionBuilder.superShardingKey(ShardingKey superShardingKey)Specifies asuperShardingKeyto be used when creating a connection -
Uses of ShardingKey in javax.sql
Methods in javax.sql with parameters of type ShardingKeyModifier and TypeMethodDescriptionPooledConnectionBuilder.shardingKey(ShardingKey shardingKey)Specifies ashardingKeyto be used when creating a connectionXAConnectionBuilder.shardingKey(ShardingKey shardingKey)Specifies ashardingKeyto be used when creating a connectionPooledConnectionBuilder.superShardingKey(ShardingKey superShardingKey)Specifies asuperShardingKeyto be used when creating a connectionXAConnectionBuilder.superShardingKey(ShardingKey superShardingKey)Specifies asuperShardingKeyto be used when creating a connection
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.