< prev index next >
jdk/src/java.sql/share/classes/javax/sql/XAConnection.java
Print this page
*** 79,89 ****
* the {@code shardingkey} is {@code null}; a {@code superSharedingKey} is specified
* without a {@code shardingKey}; this method is called on a closed
* {@code connection}; or the {@code timeout} value is less than 0.
* @throws SQLFeatureNotSupportedException if the driver does not support
* sharding
! * @since 1.9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default boolean setShardingKeyIfValid(ShardingKey shardingKey,
ShardingKey superShardingKey, int timeout)
--- 79,89 ----
* the {@code shardingkey} is {@code null}; a {@code superSharedingKey} is specified
* without a {@code shardingKey}; this method is called on a closed
* {@code connection}; or the {@code timeout} value is less than 0.
* @throws SQLFeatureNotSupportedException if the driver does not support
* sharding
! * @since 9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default boolean setShardingKeyIfValid(ShardingKey shardingKey,
ShardingKey superShardingKey, int timeout)
*** 110,120 ****
* the timeout period expires before the operation completes.
* @throws SQLException if there is an error while performing this validation;
* this method is called on a closed {@code connection}; the {@code shardingkey}
* is {@code null}; or the {@code timeout} value is less than 0.
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 1.9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default boolean setShardingKeyIfValid(ShardingKey shardingKey, int timeout)
throws SQLException {
--- 110,120 ----
* the timeout period expires before the operation completes.
* @throws SQLException if there is an error while performing this validation;
* this method is called on a closed {@code connection}; the {@code shardingkey}
* is {@code null}; or the {@code timeout} value is less than 0.
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default boolean setShardingKeyIfValid(ShardingKey shardingKey, int timeout)
throws SQLException {
*** 136,146 ****
* @throws SQLException if an error occurs setting the sharding keys;
* this method is called on a closed {@code connection};
* the {@code shardingkey} is {@code null}; or
* a {@code superSharedingKey} is specified without a {@code shardingKey}
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 1.9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default void setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey)
throws SQLException {
--- 136,146 ----
* @throws SQLException if an error occurs setting the sharding keys;
* this method is called on a closed {@code connection};
* the {@code shardingkey} is {@code null}; or
* a {@code superSharedingKey} is specified without a {@code shardingKey}
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default void setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey)
throws SQLException {
*** 159,169 ****
* @param shardingKey the sharding key to set on this connection.
* @throws SQLException if an error occurs setting the sharding key;
* this method is called on a closed {@code connection}; or the
* {@code shardkingKey} is {@code null}
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 1.9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default void setShardingKey(ShardingKey shardingKey)
throws SQLException {
--- 159,169 ----
* @param shardingKey the sharding key to set on this connection.
* @throws SQLException if an error occurs setting the sharding key;
* this method is called on a closed {@code connection}; or the
* {@code shardkingKey} is {@code null}
* @throws SQLFeatureNotSupportedException if the driver does not support sharding
! * @since 9
* @see ShardingKey
* @see ShardingKeyBuilder
*/
default void setShardingKey(ShardingKey shardingKey)
throws SQLException {
< prev index next >