--- old/src/java.sql/share/classes/javax/sql/ConnectionPoolDataSource.java 2016-01-13 16:42:13.000000000 -0500 +++ new/src/java.sql/share/classes/javax/sql/ConnectionPoolDataSource.java 2016-01-13 16:42:13.000000000 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,6 +26,7 @@ package javax.sql; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; /** @@ -70,4 +71,20 @@ */ PooledConnection getPooledConnection(String user, String password) throws SQLException; + + //------------------------- JDBC 4.3 ----------------------------------- + + /** + * Creates a new {@code createPooledConnectionBuilder} instance + * @implSpec + * The default implementation will throw a {@code SQLFeatureNotSupportedException}. + * @return The ConnectionBuilder instance that was created + * @throws SQLException if an error occurs creating the builder + * @throws SQLFeatureNotSupportedException if the driver does not support sharding + * @since 9 + * @see createPooledConnectionBuilder + */ + default PooledConnectionBuilder createPooledConnectionBuilder() throws SQLException { + throw new SQLFeatureNotSupportedException("createPooledConnectionBuilder not implemented"); + }; }