1414 * limitations under the License.
1515 */
1616
17- package com .google .cloud .spanner .connection ;
17+ package com .google .cloud .spanner .jdbc ;
1818
19- import com .google .api .core .InternalApi ;
19+ import com .google .cloud .spanner .connection .ConnectionProperties ;
20+ import com .google .cloud .spanner .connection .ConnectionProperty ;
2021import com .google .common .collect .ImmutableList ;
2122import java .sql .DriverPropertyInfo ;
2223import java .util .Arrays ;
2627import java .util .regex .Pattern ;
2728import java .util .stream .Collectors ;
2829
29- // TODO: Remove this class when the Connection API has made the list of properties public.
30- @ InternalApi
31- public class ConnectionPropertiesHelper {
32- public static ImmutableList <ConnectionProperty <?>> VALID_CONNECTION_PROPERTIES =
30+ class ConnectionPropertiesHelper {
31+ static ImmutableList <ConnectionProperty <?>> VALID_CONNECTION_PROPERTIES =
3332 ImmutableList .copyOf (
34- ConnectionProperties .CONNECTION_PROPERTIES . values () .stream ()
33+ ConnectionProperties .VALID_CONNECTION_PROPERTIES .stream ()
3534 .sorted (Comparator .comparing (ConnectionProperty ::getName ))
3635 .collect (Collectors .toList ()));
3736
38- public static DriverPropertyInfo toDriverPropertyInfo (
37+ static DriverPropertyInfo toDriverPropertyInfo (
3938 String connectionUri , ConnectionProperty <?> connectionProperty ) {
4039 DriverPropertyInfo result =
4140 new DriverPropertyInfo (
@@ -56,7 +55,7 @@ public static DriverPropertyInfo toDriverPropertyInfo(
5655 return result ;
5756 }
5857
59- public static String getConnectionPropertyName (ConnectionProperty <?> connectionProperty ) {
58+ static String getConnectionPropertyName (ConnectionProperty <?> connectionProperty ) {
6059 return connectionProperty .getName ();
6160 }
6261
0 commit comments