comparison src/main/java/org/monetdb/jdbc/MonetDriver.java @ 869:676725ad17b5

Remove not needed/used internal method checkValidProperty() Make the MonetConnection target variable private and final.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 01 Feb 2024 20:55:01 +0100 (14 months ago)
parents d9a45743536d
children ff7dbded88c8
comparison
equal deleted inserted replaced
868:a227deba0e26 869:676725ad17b5
14 14
15 import org.monetdb.mcl.net.Target; 15 import org.monetdb.mcl.net.Target;
16 import org.monetdb.mcl.net.ValidationError; 16 import org.monetdb.mcl.net.ValidationError;
17 17
18 import java.net.URISyntaxException; 18 import java.net.URISyntaxException;
19 import java.sql.*; 19 import java.sql.Connection;
20 import java.sql.Driver;
21 import java.sql.DriverManager;
22 import java.sql.DriverPropertyInfo;
23 import java.sql.SQLException;
24 import java.sql.SQLFeatureNotSupportedException;
25 import java.sql.Types;
20 import java.util.Map.Entry; 26 import java.util.Map.Entry;
21 import java.util.Properties; 27 import java.util.Properties;
22 28
23 /** 29 /**
24 *<pre> 30 *<pre>
91 * should be included 97 * should be included
92 * @return a Connection object that represents a connection to the URL 98 * @return a Connection object that represents a connection to the URL
93 * @throws SQLException if a database access error occurs 99 * @throws SQLException if a database access error occurs
94 */ 100 */
95 @Override 101 @Override
96 public Connection connect(final String url, Properties info) 102 public Connection connect(final String url, final Properties info) throws SQLException {
97 throws SQLException
98 {
99 // url should be of style jdbc:monetdb://<host>/<database> 103 // url should be of style jdbc:monetdb://<host>/<database>
100 if (!acceptsURL(url)) 104 if (!acceptsURL(url))
101 return null; 105 return null;
102 106
103 try { 107 try {