73 * @exception SQLFeatureNotSupportedException if the JDBC driver does not support 74 * this method 75 * @throws SQLTimeoutException when the driver has determined that the 76 * timeout value specified by the {@code setLoginTimeout} method 77 * has been exceeded and has at least tried to cancel the 78 * current database connection attempt 79 * @since 1.4 80 */ 81 XAConnection getXAConnection(String user, String password) 82 throws SQLException; 83 84 // JDBC 4.3 85 86 /** 87 * Creates a new {@code XAConnectionBuilder} instance 88 * @implSpec 89 * The default implementation will throw a {@code SQLFeatureNotSupportedException}. 90 * @return The ConnectionBuilder instance that was created 91 * @throws SQLException if an error occurs creating the builder 92 * @throws SQLFeatureNotSupportedException if the driver does not support sharding 93 * @since 1.9 94 * @see XAConnectionBuilder 95 */ 96 default XAConnectionBuilder createXAConnectionBuilder() throws SQLException { 97 throw new SQLFeatureNotSupportedException("createXAConnectionBuilder not implemented"); 98 }; 99 100 /** 101 * Creates a new {@code ShardingKeyBuilder} instance 102 * @implSpec 103 * The default implementation will throw a {@code SQLFeatureNotSupportedException}. 104 * @return The ShardingKeyBuilder instance that was created 105 * @throws SQLException if an error occurs creating the builder 106 * @throws SQLFeatureNotSupportedException if the driver does not support this method 107 * @since 1.9 108 * @see ShardingKeyBuilder 109 */ 110 default ShardingKeyBuilder createShardingKeyBuilder() 111 throws SQLException { 112 throw new SQLFeatureNotSupportedException("createShardingKeyBuilder not implemented"); 113 }; 114 } | 73 * @exception SQLFeatureNotSupportedException if the JDBC driver does not support 74 * this method 75 * @throws SQLTimeoutException when the driver has determined that the 76 * timeout value specified by the {@code setLoginTimeout} method 77 * has been exceeded and has at least tried to cancel the 78 * current database connection attempt 79 * @since 1.4 80 */ 81 XAConnection getXAConnection(String user, String password) 82 throws SQLException; 83 84 // JDBC 4.3 85 86 /** 87 * Creates a new {@code XAConnectionBuilder} instance 88 * @implSpec 89 * The default implementation will throw a {@code SQLFeatureNotSupportedException}. 90 * @return The ConnectionBuilder instance that was created 91 * @throws SQLException if an error occurs creating the builder 92 * @throws SQLFeatureNotSupportedException if the driver does not support sharding 93 * @since 9 94 * @see XAConnectionBuilder 95 */ 96 default XAConnectionBuilder createXAConnectionBuilder() throws SQLException { 97 throw new SQLFeatureNotSupportedException("createXAConnectionBuilder not implemented"); 98 }; 99 100 /** 101 * Creates a new {@code ShardingKeyBuilder} instance 102 * @implSpec 103 * The default implementation will throw a {@code SQLFeatureNotSupportedException}. 104 * @return The ShardingKeyBuilder instance that was created 105 * @throws SQLException if an error occurs creating the builder 106 * @throws SQLFeatureNotSupportedException if the driver does not support this method 107 * @since 9 108 * @see ShardingKeyBuilder 109 */ 110 default ShardingKeyBuilder createShardingKeyBuilder() 111 throws SQLException { 112 throw new SQLFeatureNotSupportedException("createShardingKeyBuilder not implemented"); 113 }; 114 } |