diff options
Diffstat (limited to 'src/java.sql/share/classes/java/sql/PreparedStatement.java')
| -rw-r--r-- | src/java.sql/share/classes/java/sql/PreparedStatement.java | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/src/java.sql/share/classes/java/sql/PreparedStatement.java b/src/java.sql/share/classes/java/sql/PreparedStatement.java index 20099093aad..f55ed4e4a71 100644 --- a/src/java.sql/share/classes/java/sql/PreparedStatement.java +++ b/src/java.sql/share/classes/java/sql/PreparedStatement.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2016, 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 @@ -68,9 +68,9 @@ public interface PreparedStatement extends Statement { * * @return a <code>ResultSet</code> object that contains the data produced by the * query; never <code>null</code> - * @exception SQLException if a database access error occurs; - * this method is called on a closed <code>PreparedStatement</code> or the SQL - * statement does not return a <code>ResultSet</code> object + * @throws SQLException if a database access error occurs; + * this method is called on a closed {@code PreparedStatement} or the SQL + * statement does not return a {@code ResultSet} object * @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 @@ -86,9 +86,9 @@ public interface PreparedStatement extends Statement { * * @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>PreparedStatement</code> - * or the SQL statement returns a <code>ResultSet</code> object + * @throws SQLException if a database access error occurs; + * this method is called on a closed {@code PreparedStatement} + * or the SQL statement returns a {@code ResultSet} object * @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 @@ -103,15 +103,15 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param sqlType the SQL type code defined in <code>java.sql.Types</code> - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> - * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is - * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>, - * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>, - * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>, - * <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code> - * or <code>STRUCT</code> data type and the JDBC driver does not support + * this method is called on a closed {@code PreparedStatement} + * @throws SQLFeatureNotSupportedException if {@code sqlType} is + * a {@code ARRAY}, {@code BLOB}, {@code CLOB}, + * {@code DATALINK}, {@code JAVA_OBJECT}, {@code NCHAR}, + * {@code NCLOB}, {@code NVARCHAR}, {@code LONGNVARCHAR}, + * {@code REF}, {@code ROWID}, {@code SQLXML} + * or {@code STRUCT} data type and the JDBC driver does not support * this data type */ void setNull(int parameterIndex, int sqlType) throws SQLException; @@ -123,10 +123,10 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; * if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setBoolean(int parameterIndex, boolean x) throws SQLException; @@ -137,9 +137,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setByte(int parameterIndex, byte x) throws SQLException; @@ -150,9 +150,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setShort(int parameterIndex, short x) throws SQLException; @@ -163,9 +163,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setInt(int parameterIndex, int x) throws SQLException; @@ -176,9 +176,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setLong(int parameterIndex, long x) throws SQLException; @@ -189,9 +189,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setFloat(int parameterIndex, float x) throws SQLException; @@ -202,9 +202,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setDouble(int parameterIndex, double x) throws SQLException; @@ -215,9 +215,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException; @@ -231,9 +231,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setString(int parameterIndex, String x) throws SQLException; @@ -245,9 +245,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setBytes(int parameterIndex, byte x[]) throws SQLException; @@ -260,9 +260,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setDate(int parameterIndex, java.sql.Date x) throws SQLException; @@ -274,9 +274,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setTime(int parameterIndex, java.sql.Time x) throws SQLException; @@ -289,9 +289,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> */ + * this method is called on a closed {@code PreparedStatement} */ void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException; @@ -311,9 +311,9 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the Java input stream that contains the ASCII parameter value * @param length the number of bytes in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException; @@ -339,10 +339,10 @@ public interface PreparedStatement extends Statement { * @param x a <code>java.io.InputStream</code> object that contains the * Unicode parameter value * @param length the number of bytes in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> - * @exception SQLFeatureNotSupportedException if the JDBC driver does not support + * this method is called on a closed {@code PreparedStatement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @deprecated Use {@code setCharacterStream} */ @@ -365,9 +365,9 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the java input stream which contains the binary parameter value * @param length the number of bytes in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} */ void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException; @@ -380,8 +380,8 @@ public interface PreparedStatement extends Statement { * release the resources used by the current parameter values; this can * be done by calling the method <code>clearParameters</code>. * - * @exception SQLException if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code PreparedStatement} */ void clearParameters() throws SQLException; @@ -399,10 +399,10 @@ public interface PreparedStatement extends Statement { * @param x the object containing the input parameter value * @param targetSqlType the SQL type (as defined in java.sql.Types) to be * sent to the database - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or this * method is called on a closed PreparedStatement - * @exception SQLFeatureNotSupportedException if + * @throws SQLFeatureNotSupportedException if * the JDBC driver does not support the specified targetSqlType * @see Types */ @@ -441,9 +441,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the object containing the input parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs; - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * or the type of the given object is ambiguous */ void setObject(int parameterIndex, Object x) throws SQLException; @@ -465,8 +465,8 @@ public interface PreparedStatement extends Statement { * @return <code>true</code> if the first result is a <code>ResultSet</code> * object; <code>false</code> if the first result is an update * count or there is no result - * @exception SQLException if a database access error occurs; - * this method is called on a closed <code>PreparedStatement</code> + * @throws SQLException if a database access error occurs; + * this method is called on a closed {@code PreparedStatement} * or an argument is supplied to this method * @throws SQLTimeoutException when the driver has determined that the * timeout value that was specified by the {@code setQueryTimeout} @@ -486,8 +486,8 @@ public interface PreparedStatement extends Statement { * Adds a set of parameters to this <code>PreparedStatement</code> * object's batch of commands. * - * @exception SQLException if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code PreparedStatement} * @see Statement#addBatch * @since 1.2 */ @@ -510,9 +510,9 @@ public interface PreparedStatement extends Statement { * @param reader the <code>java.io.Reader</code> object that contains the * Unicode data * @param length the number of characters in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.2 */ void setCharacterStream(int parameterIndex, @@ -527,9 +527,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x an SQL <code>REF</code> value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.2 */ @@ -542,9 +542,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x a <code>Blob</code> object that maps an SQL <code>BLOB</code> value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.2 */ @@ -557,9 +557,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x a <code>Clob</code> object that maps an SQL <code>CLOB</code> value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.2 */ @@ -572,9 +572,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x an <code>Array</code> object that maps an SQL <code>ARRAY</code> value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.2 */ @@ -600,9 +600,9 @@ public interface PreparedStatement extends Statement { * @return the description of a <code>ResultSet</code> object's columns or * <code>null</code> if the driver cannot return a * <code>ResultSetMetaData</code> object - * @exception SQLException if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</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 PreparedStatement} + * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.2 */ @@ -622,9 +622,9 @@ public interface PreparedStatement extends Statement { * @param x the parameter value * @param cal the <code>Calendar</code> object the driver will use * to construct the date - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.2 */ void setDate(int parameterIndex, java.sql.Date x, Calendar cal) @@ -644,9 +644,9 @@ public interface PreparedStatement extends Statement { * @param x the parameter value * @param cal the <code>Calendar</code> object the driver will use * to construct the time - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.2 */ void setTime(int parameterIndex, java.sql.Time x, Calendar cal) @@ -666,9 +666,9 @@ public interface PreparedStatement extends Statement { * @param x the parameter value * @param cal the <code>Calendar</code> object the driver will use * to construct the timestamp - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.2 */ void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) @@ -699,15 +699,15 @@ public interface PreparedStatement extends Statement { * @param sqlType a value from <code>java.sql.Types</code> * @param typeName the fully-qualified name of an SQL user-defined type; * ignored if the parameter is not a user-defined type or REF - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> - * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is - * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>, - * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>, - * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>, - * <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code> - * or <code>STRUCT</code> data type and the JDBC driver does not support + * this method is called on a closed {@code PreparedStatement} + * @throws SQLFeatureNotSupportedException if {@code sqlType} is + * a {@code ARRAY}, {@code BLOB}, {@code CLOB}, + * {@code DATALINK}, {@code JAVA_OBJECT}, {@code NCHAR}, + * {@code NCLOB}, {@code NVARCHAR}, {@code LONGNVARCHAR}, + * {@code REF}, {@code ROWID}, {@code SQLXML} + * or {@code STRUCT} data type and the JDBC driver does not support * this data type or if the JDBC driver does not support this method * @since 1.2 */ @@ -723,9 +723,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the <code>java.net.URL</code> object to be set - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.4 */ @@ -738,8 +738,8 @@ public interface PreparedStatement extends Statement { * @return a <code>ParameterMetaData</code> object that contains information * about the number, types and properties for each * parameter marker of this <code>PreparedStatement</code> object - * @exception SQLException if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * @throws SQLException if a database access error occurs or + * this method is called on a closed {@code PreparedStatement} * @see ParameterMetaData * @since 1.4 */ @@ -946,13 +946,13 @@ public interface PreparedStatement extends Statement { * this is the length * of the data in the stream or reader. For all other types, * this value will be ignored. - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs; - * this method is called on a closed <code>PreparedStatement</code> or + * this method is called on a closed {@code PreparedStatement} or * if the Java Object specified by x is an InputStream * or Reader object and the value of the scale parameter is less * than zero - * @exception SQLFeatureNotSupportedException if + * @throws SQLFeatureNotSupportedException if * the JDBC driver does not support the specified targetSqlType * @see Types * @@ -975,9 +975,9 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the Java input stream that contains the ASCII parameter value * @param length the number of bytes in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.6 */ void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) @@ -997,9 +997,9 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the java input stream which contains the binary parameter value * @param length the number of bytes in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.6 */ void setBinaryStream(int parameterIndex, java.io.InputStream x, @@ -1021,9 +1021,9 @@ public interface PreparedStatement extends Statement { * @param reader the <code>java.io.Reader</code> object that contains the * Unicode data * @param length the number of characters in the stream - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @since 1.6 */ void setCharacterStream(int parameterIndex, @@ -1047,9 +1047,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the Java input stream that contains the ASCII parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.6 */ @@ -1071,9 +1071,9 @@ public interface PreparedStatement extends Statement { * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the java input stream which contains the binary parameter value - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.6 */ @@ -1098,9 +1098,9 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param reader the <code>java.io.Reader</code> object that contains the * Unicode data - * @exception SQLException if parameterIndex does not correspond to a parameter + * @throws SQLException if parameterIndex does not correspond to a parameter * marker in the SQL statement; if a database access error occurs or - * this method is called on a closed <code>PreparedStatement</code> + * this method is called on a closed {@code PreparedStatement} * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * @since 1.6 */ @@ -1250,13 +1250,13 @@ public interface PreparedStatement extends Statement { * this is the length * of the data in the stream or reader. For all other types, * this value will be ignored. - * @exception SQLException if parameterIndex does not correspond to a + * @throws SQLException if parameterIndex does not correspond to a * parameter marker in the SQL statement; if a database access error occurs * or this method is called on a closed {@code PreparedStatement} or * if the Java Object specified by x is an InputStream * or Reader object and the value of the scale parameter is less * than zero - * @exception SQLFeatureNotSupportedException if + * @throws SQLFeatureNotSupportedException if * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType @@ -1279,10 +1279,10 @@ public interface PreparedStatement extends Statement { * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the object containing the input parameter value * @param targetSqlType the SQL type to be sent to the database - * @exception SQLException if parameterIndex does not correspond to a + * @throws SQLException if parameterIndex does not correspond to a * 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 + * @throws SQLFeatureNotSupportedException if * the JDBC driver does not support the specified targetSqlType * @see JDBCType * @see SQLType @@ -1307,9 +1307,9 @@ public interface PreparedStatement extends Statement { * * @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>PreparedStatement</code> - * or the SQL statement returns a <code>ResultSet</code> object + * @throws SQLException if a database access error occurs; + * this method is called on a closed {@code PreparedStatement} + * or the SQL statement returns a {@code ResultSet} object * @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 |
