diff --git a/src/share/classes/java/sql/CallableStatement.java b/src/share/classes/java/sql/CallableStatement.java index 9e593ae32db0741be443919886d2d9dc51c10261..a830b63ea8bd2d7b9003fc7844eed9efc1ef3803 100644 --- a/src/share/classes/java/sql/CallableStatement.java +++ b/src/share/classes/java/sql/CallableStatement.java @@ -1108,7 +1108,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs or * this method is called on a closed CallableStatement * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see Types * @see #getObject * @since 1.4 @@ -1131,7 +1131,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs or * this method is called on a closed CallableStatement * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see #getObject * @since 1.4 */ @@ -2536,7 +2536,7 @@ public interface CallableStatement extends PreparedStatement { * or Reader object and the value of the scale parameter is less * than zero * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @@ -2562,7 +2562,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs * or this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -2603,7 +2603,7 @@ public interface CallableStatement extends PreparedStatement { * if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -2639,7 +2639,7 @@ public interface CallableStatement extends PreparedStatement { * if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -2686,7 +2686,7 @@ public interface CallableStatement extends PreparedStatement { * if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -2725,7 +2725,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * or if the JDBC driver does not support * this method * @since 1.8 @@ -2762,7 +2762,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * or if the JDBC driver does not support * this method * @since 1.8 @@ -2811,7 +2811,7 @@ public interface CallableStatement extends PreparedStatement { * parameter; if a database access error occurs or * this method is called on a closed {@code CallableStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified sqlType * or if the JDBC driver does not support this method * @see JDBCType * @see SQLType diff --git a/src/share/classes/java/sql/DriverManager.java b/src/share/classes/java/sql/DriverManager.java index 53b4762d562ef446a5c794a0a499882351d44f45..a9190a4851e7fba3e9a3bcd76b2ed2ba82a4a057 100644 --- a/src/share/classes/java/sql/DriverManager.java +++ b/src/share/classes/java/sql/DriverManager.java @@ -213,8 +213,8 @@ public class DriverManager { * The DriverManager attempts to select an appropriate driver from * the set of registered JDBC drivers. *

- * Note: If a property is specified as part of the {@code url} and - * is also specified in the {@code Properties} object, it is + * Note: If the {@code user} or {@code password} property are + * also specified as part of the {@code url}, it is * implementation-defined as to which value will take precedence. * For maximum portability, an application should only specify a * property once. @@ -320,7 +320,7 @@ public class DriverManager { * Registers the given driver with the {@code DriverManager}. * A newly-loaded driver class should call * the method {@code registerDriver} to make itself - * known to the {@code DriverManager}. If the driver had previously been + * known to the {@code DriverManager}. If the driver is currently * registered, no action is taken. * * @param driver the new JDBC Driver that is to be registered with the @@ -338,7 +338,7 @@ public class DriverManager { * Registers the given driver with the {@code DriverManager}. * A newly-loaded driver class should call * the method {@code registerDriver} to make itself - * known to the {@code DriverManager}. If the driver had previously been + * known to the {@code DriverManager}. If the driver is currently * registered, no action is taken. * * @param driver the new JDBC Driver that is to be registered with the @@ -347,6 +347,7 @@ public class DriverManager { * {@code DriverManager#deregisterDriver} is called * @exception SQLException if a database access error occurs * @exception NullPointerException if {@code driver} is null + * @since 1.8 */ public static synchronized void registerDriver(java.sql.Driver driver, DriverAction da) diff --git a/src/share/classes/java/sql/JDBCType.java b/src/share/classes/java/sql/JDBCType.java index 74ee8e0168202f8d39ca1c6c3c56205f6d119c52..89db37bbf599dacc253257ec368bc9ea8786ea4d 100644 --- a/src/share/classes/java/sql/JDBCType.java +++ b/src/share/classes/java/sql/JDBCType.java @@ -218,8 +218,8 @@ public enum JDBCType implements SQLType { } /** - * Returns the name of the data type. - * @return The name of the data type. + *{@inheritDoc } + * @return The name of this {@code SQLType}. */ public String getName() { return name(); diff --git a/src/share/classes/java/sql/PreparedStatement.java b/src/share/classes/java/sql/PreparedStatement.java index 20cde7fb98514d01a154e7ff85b7686219e38979..2b2e7f3374b4cced7c64efd9dfdb56c088b26611 100644 --- a/src/share/classes/java/sql/PreparedStatement.java +++ b/src/share/classes/java/sql/PreparedStatement.java @@ -401,7 +401,7 @@ public interface PreparedStatement extends Statement { * marker in the SQL statement; if a database access error occurs or this * method is called on a closed PreparedStatement * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see Types */ void setObject(int parameterIndex, Object x, int targetSqlType) @@ -951,7 +951,7 @@ public interface PreparedStatement extends Statement { * or Reader object and the value of the scale parameter is less * than zero * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see Types * */ @@ -1255,7 +1255,7 @@ public interface PreparedStatement extends Statement { * or Reader object and the value of the scale parameter is less * than zero * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -1281,7 +1281,7 @@ public interface PreparedStatement extends Statement { * parameter marker in the SQL statement; if a database access error occurs * or this method is called on a closed {@code PreparedStatement} * @exception SQLFeatureNotSupportedException if - * the JDBC driver does not support this data type + * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 diff --git a/src/share/classes/java/sql/ResultSet.java b/src/share/classes/java/sql/ResultSet.java index 5ac61d1d4c1e1bfcad58e2d58313bfc988e4ea23..d939a9a582ed373c4498397c5484045eb40e4a40 100644 --- a/src/share/classes/java/sql/ResultSet.java +++ b/src/share/classes/java/sql/ResultSet.java @@ -4178,7 +4178,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { * the result set concurrency is {@code CONCUR_READ_ONLY} * or this method is called on a closed result set * @exception SQLFeatureNotSupportedException if the JDBC driver does not - * support this method; if the JDBC driver does not support this data type + * support this method; if the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -4221,7 +4221,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { * the result set concurrency is {@code CONCUR_READ_ONLY} * or this method is called on a closed result set * @exception SQLFeatureNotSupportedException if the JDBC driver does not - * support this method; if the JDBC driver does not support this data type + * support this method; if the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -4249,7 +4249,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { * the result set concurrency is {@code CONCUR_READ_ONLY} * or this method is called on a closed result set * @exception SQLFeatureNotSupportedException if the JDBC driver does not - * support this method; if the JDBC driver does not support this data type + * support this method; if the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 @@ -4279,7 +4279,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { * the result set concurrency is {@code CONCUR_READ_ONLY} * or this method is called on a closed result set * @exception SQLFeatureNotSupportedException if the JDBC driver does not - * support this method; if the JDBC driver does not support this data type + * support this method; if the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType * @since 1.8 diff --git a/src/share/classes/java/sql/SQLPermission.java b/src/share/classes/java/sql/SQLPermission.java index e3a24225fec4055e35b6602f7d49adb86288fe55..951430d90cc2693a9d2f81162d438f4410aafd49 100644 --- a/src/share/classes/java/sql/SQLPermission.java +++ b/src/share/classes/java/sql/SQLPermission.java @@ -122,7 +122,7 @@ public final class SQLPermission extends BasicPermission { * * @param name the name of this SQLPermission object, which must * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory}, - * or {@code setNetworkTimeout} + * {@code deregisterDriver}, or {@code setNetworkTimeout} * @throws NullPointerException if name is null. * @throws IllegalArgumentException if name is empty. @@ -140,7 +140,7 @@ public final class SQLPermission extends BasicPermission { * * @param name the name of this SQLPermission object, which must * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory}, - * or {@code setNetworkTimeout} + * {@code deregisterDriver}, or {@code setNetworkTimeout} * @param actions should be null * @throws NullPointerException if name is null. * @throws IllegalArgumentException if name is empty.