summaryrefslogtreecommitdiff
path: root/src/java.sql/share/classes/java/sql/Statement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java.sql/share/classes/java/sql/Statement.java')
-rw-r--r--src/java.sql/share/classes/java/sql/Statement.java274
1 files changed, 137 insertions, 137 deletions
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 <code>SELECT</code> statement
* @return a <code>ResultSet</code> object that contains the data produced
* by the given query; never <code>null</code>
- * @exception SQLException if a database access error occurs,
- * this method is called on a closed <code>Statement</code>, 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
- * <code>ResultSet</code> object, the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>Statement</code>, the given
- * SQL statement produces a <code>ResultSet</code> object, the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * @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 <code>ResultSet</code> 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 <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>ResultSet</code>
* object produced by this <code>Statement</code> object;
* zero means there is no limit
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>true</code> to enable escape processing;
* <code>false</code> to disable it
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>Statement</code>
- * @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 <code>SQLWarning</code> object or <code>null</code>
* if there are no warnings
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 {
* <code>null</code> until a new warning is reported for this
* <code>Statement</code> object.
*
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>true</code> if the first result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code>,
+ * @throws SQLException if a database access error occurs,
+ * this method is called on a closed {@code Statement},
* the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>ResultSet</code> object or
* <code>null</code> 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 <code>Statement</code>
+ * @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
* <code>ResultSet</code> object or there are no more results
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>true</code> if the next result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>ResultSet.FETCH_FORWARD</code>,
- * <code>ResultSet.FETCH_REVERSE</code>, or <code>ResultSet.FETCH_UNKNOWN</code>
+ * 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 <code>Statement</code> object
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code> 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 <code>Statement</code> object
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>ResultSet.CONCUR_READ_ONLY</code> or
* <code>ResultSet.CONCUR_UPDATABLE</code>
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>ResultSet.TYPE_FORWARD_ONLY</code>,
* <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or
* <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 {
* <code>PreparedStatement</code> or <code>CallableStatement</code>.
* @param sql typically this is a SQL <code>INSERT</code> or
* <code>UPDATE</code> statement
- * @exception SQLException if a database access error occurs,
- * this method is called on a closed <code>Statement</code>, 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>Statement</code> object's current list of
* SQL commands.
*
- * @exception SQLException if a database access error occurs,
- * this method is called on a closed <code>Statement</code> 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 <code>Statement</code> 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 <code>SQLException</code>) 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 <code>Connection</code> object
* that produced this <code>Statement</code> object.
* @return the connection that produced this statement
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>true</code> if the next result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code> 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:
- * <code>Statement.CLOSE_CURRENT_RESULT</code>,
- * <code>Statement.KEEP_CURRENT_RESULT</code> or
- * <code>Statement.CLOSE_ALL_RESULTS</code>
- *@exception SQLFeatureNotSupportedException if
- * <code>DatabaseMetaData.supportsMultipleOpenResults</code> returns
- * <code>false</code> and either
- * <code>Statement.KEEP_CURRENT_RESULT</code> or
- * <code>Statement.CLOSE_ALL_RESULTS</code> 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 <code>ResultSet</code> object containing the auto-generated key(s)
* generated by the execution of this <code>Statement</code> object
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code>, the given
- * SQL statement returns a <code>ResultSet</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
- * @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 <code>Statement</code>, the SQL
- * statement returns a <code>ResultSet</code> 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
- * <code>int</code> array whose elements are valid column indexes, the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>INSERT</code>, <code>UPDATE</code>,
* or <code>DELETE</code> statements, or 0 for SQL statements
* that return nothing
- * @exception SQLException if a database access error occurs,
- * this method is called on a closed <code>Statement</code>, the SQL
- * statement returns a <code>ResultSet</code> object, the
- * second argument supplied to this method is not a <code>String</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>true</code> if the first result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code>, 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
- * <code>Statement.RETURN_GENERATED_KEYS</code> or
- * <code>Statement.NO_GENERATED_KEYS</code>,
+ * {@code Statement.RETURN_GENERATED_KEYS} or
+ * {@code Statement.NO_GENERATED_KEYS},
* the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
- * @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 <code>true</code> if the first result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code>, the
- * elements in the <code>int</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>true</code> if the next result is a <code>ResultSet</code>
* object; <code>false</code> 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 <code>Statement</code>,the
- * elements of the <code>String</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
* <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>ResultSet</code> object or there are no more results
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code>
+ * @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 <code>ResultSet</code>
* object produced by this <code>Statement</code> object;
* zero means there is no limit
- * @exception SQLException if a database access error occurs or
- * this method is called on a closed <code>Statement</code>
+ * @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 <code>Statement</code> 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 <code>SQLException</code>) 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 <code>Statement</code>, the given
- * SQL statement produces a <code>ResultSet</code> object, the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * @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 <code>Statement</code>, the given
- * SQL statement returns a <code>ResultSet</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
- * @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 <code>Statement</code>, the SQL
- * statement returns a <code>ResultSet</code> 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
- * <code>int</code> array whose elements are valid column indexes, the method is called on a
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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 <code>INSERT</code>, <code>UPDATE</code>,
* or <code>DELETE</code> statements, or 0 for SQL statements
* that return nothing
- * @exception SQLException if a database access error occurs,
- * this method is called on a closed <code>Statement</code>, the SQL
- * statement returns a <code>ResultSet</code> object, the
- * second argument supplied to this method is not a <code>String</code> 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
- * <code>PreparedStatement</code> or <code>CallableStatement</code>
+ * {@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}