From dffe9db25c19a7e99d3d35c535197bf7e4c15c8a Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Fri, 2 Oct 2020 14:50:53 +0000 Subject: 8252537: Updated @exception with @throws 8252536: Replace @exception with @throws for core-libs 8252539: Replace @exception with @throws java.rmi.activation package 8252540: Replace @exception with @throws java.rmi.registry package 8252541: Replace @exception with @throws java.rmi.server package Reviewed-by: rriggs, sspitsyn, lancea --- src/java.sql/share/classes/java/sql/Statement.java | 274 ++++++++++----------- 1 file changed, 137 insertions(+), 137 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/Statement.java') diff --git a/src/java.sql/share/classes/java/sql/Statement.java b/src/java.sql/share/classes/java/sql/Statement.java index 89828185508..252a937da8b 100644 --- a/src/java.sql/share/classes/java/sql/Statement.java +++ b/src/java.sql/share/classes/java/sql/Statement.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, 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 @@ -56,11 +56,11 @@ public interface Statement extends Wrapper, AutoCloseable { * static SQL SELECT statement * @return a ResultSet object that contains the data produced * by the given query; never null - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the given + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the given * SQL statement produces anything other than a single - * ResultSet object, the method is called on a - * PreparedStatement or CallableStatement + * {@code ResultSet} object, the method is called on a + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} * method has been exceeded and has at least attempted to cancel @@ -82,10 +82,10 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language (DML) statements * or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the given - * SQL statement produces a ResultSet object, the method is called on a - * PreparedStatement or CallableStatement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the given + * SQL statement produces a {@code ResultSet} object, the method is called on a + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} * method has been exceeded and has at least attempted to cancel @@ -108,7 +108,7 @@ public interface Statement extends Wrapper, AutoCloseable { * closed, its current ResultSet object, if one exists, is * also closed. * - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ void close() throws SQLException; @@ -126,8 +126,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the current column size limit for columns storing character and * binary values; zero means there is no limit - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #setMaxFieldSize */ int getMaxFieldSize() throws SQLException; @@ -146,8 +146,8 @@ public interface Statement extends Wrapper, AutoCloseable { * greater than 256. * * @param max the new column size limit in bytes; zero means there is no limit - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} * or the condition {@code max >= 0} is not satisfied * @see #getMaxFieldSize */ @@ -162,8 +162,8 @@ public interface Statement extends Wrapper, AutoCloseable { * @return the current maximum number of rows for a ResultSet * object produced by this Statement object; * zero means there is no limit - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #setMaxRows */ int getMaxRows() throws SQLException; @@ -176,8 +176,8 @@ public interface Statement extends Wrapper, AutoCloseable { * rows are silently dropped. * * @param max the new max rows limit; zero means there is no limit - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} * or the condition {@code max >= 0} is not satisfied * @see #getMaxRows */ @@ -202,8 +202,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @param enable true to enable escape processing; * false to disable it - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} */ void setEscapeProcessing(boolean enable) throws SQLException; @@ -215,8 +215,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the current query timeout limit in seconds; zero means there is * no limit - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #setQueryTimeout */ int getQueryTimeout() throws SQLException; @@ -242,8 +242,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @param seconds the new query timeout limit in seconds; zero means * there is no limit - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} * or the condition {@code seconds >= 0} is not satisfied * @see #getQueryTimeout */ @@ -255,9 +255,9 @@ public interface Statement extends Wrapper, AutoCloseable { * This method can be used by one thread to cancel a statement that * is being executed by another thread. * - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method */ void cancel() throws SQLException; @@ -279,8 +279,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the first SQLWarning object or null * if there are no warnings - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} */ SQLWarning getWarnings() throws SQLException; @@ -291,8 +291,8 @@ public interface Statement extends Wrapper, AutoCloseable { * null until a new warning is reported for this * Statement object. * - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} */ void clearWarnings() throws SQLException; @@ -315,8 +315,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @param name the new cursor name, which must be unique within * a connection - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method */ void setCursorName(String name) throws SQLException; @@ -343,10 +343,10 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the first result is a ResultSet * object; false if it is an update count or there are * no results - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, * the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} * method has been exceeded and has at least attempted to cancel @@ -363,8 +363,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the current result as a ResultSet object or * null if the result is an update count or there are no more results - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #execute */ ResultSet getResultSet() throws SQLException; @@ -376,8 +376,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the current result as an update count; -1 if the current result is a * ResultSet object or there are no more results - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #execute */ int getUpdateCount() throws SQLException; @@ -397,8 +397,8 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the next result is a ResultSet * object; false if it is an update count or there are * no more results - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #execute */ boolean getMoreResults() throws SQLException; @@ -419,11 +419,11 @@ public interface Statement extends Wrapper, AutoCloseable { * its own fetch direction. * * @param direction the initial direction for processing rows - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} * or the given direction - * is not one of ResultSet.FETCH_FORWARD, - * ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN + * is not one of {@code ResultSet.FETCH_FORWARD}, + * {@code ResultSet.FETCH_REVERSE}, or {@code ResultSet.FETCH_UNKNOWN} * @since 1.2 * @see #getFetchDirection */ @@ -439,8 +439,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the default fetch direction for result sets generated * from this Statement object - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @since 1.2 * @see #setFetchDirection */ @@ -454,8 +454,8 @@ public interface Statement extends Wrapper, AutoCloseable { * The default value is zero. * * @param rows the number of rows to fetch - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement or the + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} or the * condition {@code rows >= 0} is not satisfied. * @since 1.2 * @see #getFetchSize @@ -472,8 +472,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the default fetch size for result sets generated * from this Statement object - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @since 1.2 * @see #setFetchSize */ @@ -485,8 +485,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return either ResultSet.CONCUR_READ_ONLY or * ResultSet.CONCUR_UPDATABLE - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @since 1.2 */ int getResultSetConcurrency() throws SQLException; @@ -498,8 +498,8 @@ public interface Statement extends Wrapper, AutoCloseable { * @return one of ResultSet.TYPE_FORWARD_ONLY, * ResultSet.TYPE_SCROLL_INSENSITIVE, or * ResultSet.TYPE_SCROLL_SENSITIVE - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @since 1.2 */ int getResultSetType() throws SQLException; @@ -513,10 +513,10 @@ public interface Statement extends Wrapper, AutoCloseable { * PreparedStatement or CallableStatement. * @param sql typically this is a SQL INSERT or * UPDATE statement - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the * driver does not support batch updates, the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @see #executeBatch * @see DatabaseMetaData#supportsBatchUpdates * @since 1.2 @@ -527,8 +527,8 @@ public interface Statement extends Wrapper, AutoCloseable { * Empties this Statement object's current list of * SQL commands. * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement or the + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} or the * driver does not support batch updates * @see #addBatch * @see DatabaseMetaData#supportsBatchUpdates @@ -577,10 +577,10 @@ public interface Statement extends Wrapper, AutoCloseable { * @return an array of update counts containing one element for each * command in the batch. The elements of the array are ordered according * to the order in which commands were added to the batch. - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement or the + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} or the * driver does not support batch statements. Throws {@link BatchUpdateException} - * (a subclass of SQLException) if one of the commands sent to the + * (a subclass of {@code SQLException}) if one of the commands sent to the * database fails to execute properly or attempts to return a result set. * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -597,8 +597,8 @@ public interface Statement extends Wrapper, AutoCloseable { * Retrieves the Connection object * that produced this Statement object. * @return the connection that produced this statement - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @since 1.2 */ Connection getConnection() throws SQLException; @@ -684,17 +684,17 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the next result is a ResultSet * object; false if it is an update count or there are no * more results - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement or the argument + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} or the argument * supplied is not one of the following: - * Statement.CLOSE_CURRENT_RESULT, - * Statement.KEEP_CURRENT_RESULT or - * Statement.CLOSE_ALL_RESULTS - *@exception SQLFeatureNotSupportedException if - * DatabaseMetaData.supportsMultipleOpenResults returns - * false and either - * Statement.KEEP_CURRENT_RESULT or - * Statement.CLOSE_ALL_RESULTS are supplied as + * {@code Statement.CLOSE_CURRENT_RESULT}, + * {@code Statement.KEEP_CURRENT_RESULT} or + * {@code Statement.CLOSE_ALL_RESULTS} + *@throws SQLFeatureNotSupportedException if + * {@code DatabaseMetaData.supportsMultipleOpenResults} returns + * {@code false} and either + * {@code Statement.KEEP_CURRENT_RESULT} or + * {@code Statement.CLOSE_ALL_RESULTS} are supplied as * the argument. * @since 1.4 * @see #execute @@ -712,8 +712,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return a ResultSet object containing the auto-generated key(s) * generated by the execution of this Statement object - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.4 */ @@ -742,12 +742,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language (DML) statements * or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the given - * SQL statement returns a ResultSet object, + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the given + * SQL statement returns a {@code ResultSet} object, * the given constant is not one of those allowed, the method is called on a - * PreparedStatement or CallableStatement - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * {@code PreparedStatement} or {@code CallableStatement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method with a constant of Statement.RETURN_GENERATED_KEYS * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -777,12 +777,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language (DML) statements * or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the SQL - * statement returns a ResultSet object,the second argument + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the SQL + * statement returns a {@code ResultSet} object,the second argument * supplied to this method is not an - * int array whose elements are valid column indexes, the method is called on a - * PreparedStatement or CallableStatement + * {@code int} array whose elements are valid column indexes, the method is called on a + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -811,12 +811,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either the row count for INSERT, UPDATE, * or DELETE statements, or 0 for SQL statements * that return nothing - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the SQL - * statement returns a ResultSet object, the - * second argument supplied to this method is not a String array + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the SQL + * statement returns a {@code ResultSet} object, the + * second argument supplied to this method is not a {@code String} array * whose elements are valid column names, the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -857,14 +857,14 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the first result is a ResultSet * object; false if it is an update count or there are * no results - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the second + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the second * parameter supplied to this method is not - * Statement.RETURN_GENERATED_KEYS or - * Statement.NO_GENERATED_KEYS, + * {@code Statement.RETURN_GENERATED_KEYS} or + * {@code Statement.NO_GENERATED_KEYS}, * the method is called on a - * PreparedStatement or CallableStatement - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * {@code PreparedStatement} or {@code CallableStatement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method with a constant of Statement.RETURN_GENERATED_KEYS * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -910,11 +910,11 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the first result is a ResultSet * object; false if it is an update count or there * are no results - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the - * elements in the int array passed to this method + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the + * elements in the {@code int} array passed to this method * are not valid column indexes, the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -959,11 +959,11 @@ public interface Statement extends Wrapper, AutoCloseable { * @return true if the next result is a ResultSet * object; false if it is an update count or there * are no more results - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement,the - * elements of the String array passed to this + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement},the + * elements of the {@code String} array passed to this * method are not valid column names, the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -984,8 +984,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return either ResultSet.HOLD_CURSORS_OVER_COMMIT or * ResultSet.CLOSE_CURSORS_AT_COMMIT - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * * @since 1.4 */ @@ -1087,8 +1087,8 @@ public interface Statement extends Wrapper, AutoCloseable { * * @return the current result as an update count; -1 if the current result * is a ResultSet object or there are no more results - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #execute * @since 1.8 */ @@ -1109,8 +1109,8 @@ public interface Statement extends Wrapper, AutoCloseable { * The default implementation will throw {@code UnsupportedOperationException} * * @param max the new max rows limit; zero means there is no limit - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} * or the condition {@code max >= 0} is not satisfied * @see #getMaxRows * @since 1.8 @@ -1133,8 +1133,8 @@ public interface Statement extends Wrapper, AutoCloseable { * @return the current maximum number of rows for a ResultSet * object produced by this Statement object; * zero means there is no limit - * @exception SQLException if a database access error occurs or - * this method is called on a closed Statement + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code Statement} * @see #setMaxRows * @since 1.8 */ @@ -1183,10 +1183,10 @@ public interface Statement extends Wrapper, AutoCloseable { * @return an array of update counts containing one element for each * command in the batch. The elements of the array are ordered according * to the order in which commands were added to the batch. - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement or the + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement} or the * driver does not support batch statements. Throws {@link BatchUpdateException} - * (a subclass of SQLException) if one of the commands sent to the + * (a subclass of {@code SQLException}) if one of the commands sent to the * database fails to execute properly or attempts to return a result set. * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -1222,10 +1222,10 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language * (DML) statements or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the given - * SQL statement produces a ResultSet object, the method is called on a - * PreparedStatement or CallableStatement + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the given + * SQL statement produces a {@code ResultSet} object, the method is called on a + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} * method has been exceeded and has at least attempted to cancel @@ -1266,12 +1266,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language (DML) statements * or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the given - * SQL statement returns a ResultSet object, + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the given + * SQL statement returns a {@code ResultSet} object, * the given constant is not one of those allowed, the method is called on a - * PreparedStatement or CallableStatement - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * {@code PreparedStatement} or {@code CallableStatement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method with a constant of Statement.RETURN_GENERATED_KEYS * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -1311,12 +1311,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either (1) the row count for SQL Data Manipulation Language (DML) statements * or (2) 0 for SQL statements that return nothing * - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the SQL - * statement returns a ResultSet object,the second argument + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the SQL + * statement returns a {@code ResultSet} object,the second argument * supplied to this method is not an - * int array whose elements are valid column indexes, the method is called on a - * PreparedStatement or CallableStatement + * {@code int} array whose elements are valid column indexes, the method is called on a + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -1354,12 +1354,12 @@ public interface Statement extends Wrapper, AutoCloseable { * @return either the row count for INSERT, UPDATE, * or DELETE statements, or 0 for SQL statements * that return nothing - * @exception SQLException if a database access error occurs, - * this method is called on a closed Statement, the SQL - * statement returns a ResultSet object, the - * second argument supplied to this method is not a String array + * @throws SQLException if a database access error occurs, + * this method is called on a closed {@code Statement}, the SQL + * statement returns a {@code ResultSet} object, the + * second argument supplied to this method is not a {@code String} array * whose elements are valid column names, the method is called on a - * PreparedStatement or CallableStatement + * {@code PreparedStatement} or {@code CallableStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} -- cgit v1.3.1