209 |
* @param url The JDBC URL string to find a driver for. |
* @param url The JDBC URL string to find a driver for. |
210 |
* |
* |
211 |
* @return A <code>Driver</code> that can connect to the specified |
* @return A <code>Driver</code> that can connect to the specified |
212 |
* URL, or <code>null</code> if a suitable driver cannot be found. |
* URL. |
213 |
* |
* |
214 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs, or no suitable driver can be found. |
215 |
*/ |
*/ |
216 |
public static Driver getDriver(String url) throws SQLException |
public static Driver getDriver(String url) throws SQLException |
217 |
{ |
{ |
224 |
return d; |
return d; |
225 |
} |
} |
226 |
|
|
227 |
return null; |
throw new SQLException("No driver found for " + url); |
228 |
} |
} |
229 |
|
|
230 |
/** |
/** |