From dee79d605334804118839e9f71151a7e8d1ad27b Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Wed, 25 Nov 2020 16:01:40 +0000 Subject: 8253936: Replace ... with {@code ...} for java.sql Reviewed-by: lancea --- src/java.sql/share/classes/java/sql/SQLOutput.java | 122 ++++++++++----------- 1 file changed, 61 insertions(+), 61 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/SQLOutput.java') diff --git a/src/java.sql/share/classes/java/sql/SQLOutput.java b/src/java.sql/share/classes/java/sql/SQLOutput.java index 5e96412d540..10817bdc157 100644 --- a/src/java.sql/share/classes/java/sql/SQLOutput.java +++ b/src/java.sql/share/classes/java/sql/SQLOutput.java @@ -31,17 +31,17 @@ package java.sql; * only for custom mapping, is used by the driver, and its * methods are never directly invoked by a programmer. *

When an object of a class implementing the interface - * SQLData is passed as an argument to an SQL statement, the - * JDBC driver calls the method SQLData.getSQLType to + * {@code SQLData} is passed as an argument to an SQL statement, the + * JDBC driver calls the method {@code SQLData.getSQLType} to * determine the kind of SQL * datum being passed to the database. - * The driver then creates an instance of SQLOutput and - * passes it to the method SQLData.writeSQL. - * The method writeSQL in turn calls the - * appropriate SQLOutput writer methods - * writeBoolean, writeCharacterStream, and so on) - * to write data from the SQLData object to - * the SQLOutput output stream as the + * The driver then creates an instance of {@code SQLOutput} and + * passes it to the method {@code SQLData.writeSQL}. + * The method {@code writeSQL} in turn calls the + * appropriate {@code SQLOutput} writer methods + * {@code writeBoolean}, {@code writeCharacterStream}, and so on) + * to write data from the {@code SQLData} object to + * the {@code SQLOutput} output stream as the * representation of an SQL user-defined type. * @since 1.2 */ @@ -55,7 +55,7 @@ package java.sql; //================================================================ /** - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -68,7 +68,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java boolean. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -81,7 +81,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java byte. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -94,7 +94,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java short. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -107,7 +107,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java int. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -120,7 +120,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java long. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -133,7 +133,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java float. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -146,7 +146,7 @@ package java.sql; /** * Writes the next attribute to the stream as a Java double. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -159,7 +159,7 @@ package java.sql; /** * Writes the next attribute to the stream as a java.math.BigDecimal object. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -172,7 +172,7 @@ package java.sql; /** * Writes the next attribute to the stream as an array of bytes. - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. * * @param x the value to pass to the database @@ -185,7 +185,7 @@ package java.sql; /** * Writes the next attribute to the stream as a java.sql.Date object. - * Writes the next attribute to the stream as a java.sql.Date object + * Writes the next attribute to the stream as a {@code java.sql.Date} object * in the Java programming language. * * @param x the value to pass to the database @@ -198,7 +198,7 @@ package java.sql; /** * Writes the next attribute to the stream as a java.sql.Time object. - * Writes the next attribute to the stream as a java.sql.Date object + * Writes the next attribute to the stream as a {@code java.sql.Date} object * in the Java programming language. * * @param x the value to pass to the database @@ -211,7 +211,7 @@ package java.sql; /** * Writes the next attribute to the stream as a java.sql.Timestamp object. - * Writes the next attribute to the stream as a java.sql.Date object + * Writes the next attribute to the stream as a {@code java.sql.Date} object * in the Java programming language. * * @param x the value to pass to the database @@ -266,17 +266,17 @@ package java.sql; /** * Writes to the stream the data contained in the given - * SQLData object. - * When the SQLData object is null, this - * method writes an SQL NULL to the stream. - * Otherwise, it calls the SQLData.writeSQL + * {@code SQLData} object. + * When the {@code SQLData} object is {@code null}, this + * method writes an SQL {@code NULL} to the stream. + * Otherwise, it calls the {@code SQLData.writeSQL} * method of the given object, which * writes the object's attributes to the stream. - * The implementation of the method SQLData.writeSQL - * calls the appropriate SQLOutput writer method(s) + * The implementation of the method {@code SQLData.writeSQL} + * calls the appropriate {@code SQLOutput} writer method(s) * for writing each of the object's attributes in order. - * The attributes must be read from an SQLInput - * input stream and written to an SQLOutput + * The attributes must be read from an {@code SQLInput} + * input stream and written to an {@code SQLOutput} * output stream in the same order in which they were * listed in the SQL definition of the user-defined type. * @@ -290,10 +290,10 @@ package java.sql; void writeObject(SQLData x) throws SQLException; /** - * Writes an SQL REF value to the stream. + * Writes an SQL {@code REF} value to the stream. * - * @param x a Ref object representing data of an SQL - * REF value + * @param x a {@code Ref} object representing data of an SQL + * {@code REF} value * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support * this method @@ -302,10 +302,10 @@ package java.sql; void writeRef(Ref x) throws SQLException; /** - * Writes an SQL BLOB value to the stream. + * Writes an SQL {@code BLOB} value to the stream. * - * @param x a Blob object representing data of an SQL - * BLOB value + * @param x a {@code Blob} object representing data of an SQL + * {@code BLOB} value * * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -315,10 +315,10 @@ package java.sql; void writeBlob(Blob x) throws SQLException; /** - * Writes an SQL CLOB value to the stream. + * Writes an SQL {@code CLOB} value to the stream. * - * @param x a Clob object representing data of an SQL - * CLOB value + * @param x a {@code Clob} object representing data of an SQL + * {@code CLOB} value * * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -330,7 +330,7 @@ package java.sql; /** * Writes an SQL structured type value to the stream. * - * @param x a Struct object representing data of an SQL + * @param x a {@code Struct} object representing data of an SQL * structured type * * @throws SQLException if a database access error occurs @@ -341,10 +341,10 @@ package java.sql; void writeStruct(Struct x) throws SQLException; /** - * Writes an SQL ARRAY value to the stream. + * Writes an SQL {@code ARRAY} value to the stream. * - * @param x an Array object representing data of an SQL - * ARRAY type + * @param x an {@code Array} object representing data of an SQL + * {@code ARRAY} type * * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -356,9 +356,9 @@ package java.sql; //--------------------------- JDBC 3.0 ------------------------ /** - * Writes a SQL DATALINK value to the stream. + * Writes a SQL {@code DATALINK} value to the stream. * - * @param x a java.net.URL object representing the data + * @param x a {@code java.net.URL} object representing the data * of SQL DATALINK type * * @throws SQLException if a database access error occurs @@ -371,12 +371,12 @@ package java.sql; //--------------------------- JDBC 4.0 ------------------------ /** - * Writes the next attribute to the stream as a String + * Writes the next attribute to the stream as a {@code String} * in the Java programming language. The driver converts this to a - * SQL NCHAR or - * NVARCHAR or LONGNVARCHAR value + * SQL {@code NCHAR} or + * {@code NVARCHAR} or {@code LONGNVARCHAR} value * (depending on the argument's - * size relative to the driver's limits on NVARCHAR values) + * size relative to the driver's limits on {@code NVARCHAR} values) * when it sends it to the stream. * * @param x the value to pass to the database @@ -388,10 +388,10 @@ package java.sql; void writeNString(String x) throws SQLException; /** - * Writes an SQL NCLOB value to the stream. + * Writes an SQL {@code NCLOB} value to the stream. * - * @param x a NClob object representing data of an SQL - * NCLOB value + * @param x a {@code NClob} object representing data of an SQL + * {@code NCLOB} value * * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -402,10 +402,10 @@ package java.sql; /** - * Writes an SQL ROWID value to the stream. + * Writes an SQL {@code ROWID} value to the stream. * - * @param x a RowId object representing data of an SQL - * ROWID value + * @param x a {@code RowId} object representing data of an SQL + * {@code ROWID} value * * @throws SQLException if a database access error occurs * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -416,15 +416,15 @@ package java.sql; /** - * Writes an SQL XML value to the stream. + * Writes an SQL {@code XML} value to the stream. * - * @param x a SQLXML object representing data of an SQL - * XML value + * @param x a {@code SQLXML} object representing data of an SQL + * {@code XML} value * * @throws SQLException if a database access error occurs, - * the java.xml.transform.Result, - * Writer or OutputStream has not been closed for the SQLXML object or - * if there is an error processing the XML value. The getCause method + * the {@code java.xml.transform.Result}, + * {@code Writer} or {@code OutputStream} has not been closed for the {@code SQLXML} object or + * if there is an error processing the XML value. The {@code getCause} method * of the exception may provide a more detailed exception, for example, if the * stream does not contain valid XML. * @throws SQLFeatureNotSupportedException if the JDBC driver does not support -- cgit v1.3.1