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/Array.java | 180 ++++++++++++------------- 1 file changed, 90 insertions(+), 90 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/Array.java') diff --git a/src/java.sql/share/classes/java/sql/Array.java b/src/java.sql/share/classes/java/sql/Array.java index ef635d33730..1c42d3e5b79 100644 --- a/src/java.sql/share/classes/java/sql/Array.java +++ b/src/java.sql/share/classes/java/sql/Array.java @@ -27,18 +27,18 @@ package java.sql; /** * The mapping in the Java programming language for the SQL type - * ARRAY. - * By default, an Array value is a transaction-duration - * reference to an SQL ARRAY value. By default, an Array + * {@code ARRAY}. + * By default, an {@code Array} value is a transaction-duration + * reference to an SQL {@code ARRAY} value. By default, an {@code Array} * object is implemented using an SQL LOCATOR(array) internally, which - * means that an Array object contains a logical pointer - * to the data in the SQL ARRAY value rather - * than containing the ARRAY value's data. + * means that an {@code Array} object contains a logical pointer + * to the data in the SQL {@code ARRAY} value rather + * than containing the {@code ARRAY} value's data. *

- * The Array interface provides methods for bringing an SQL - * ARRAY value's data to the client as either an array or a - * ResultSet object. - * If the elements of the SQL ARRAY + * The {@code Array} interface provides methods for bringing an SQL + * {@code ARRAY} value's data to the client as either an array or a + * {@code ResultSet} object. + * If the elements of the SQL {@code ARRAY} * are a UDT, they may be custom mapped. To create a custom mapping, * a programmer must do two things: *

*

* When a type map with an entry for - * the base type is supplied to the methods getArray - * and getResultSet, the mapping - * it contains will be used to map the elements of the ARRAY value. + * the base type is supplied to the methods {@code getArray} + * and {@code getResultSet}, the mapping + * it contains will be used to map the elements of the {@code ARRAY} value. * If no type map is supplied, which would typically be the case, * the connection's type map is used by default. * If the connection's type map or a type map supplied to a method has no entry * for the base type, the elements are mapped according to the standard mapping. *

- * All methods on the Array interface must be fully implemented if the + * All methods on the {@code Array} interface must be fully implemented if the * JDBC driver supports the data type. * * @since 1.2 @@ -71,13 +71,13 @@ public interface Array { /** * Retrieves the SQL type name of the elements in - * the array designated by this Array object. + * the array designated by this {@code Array} object. * If the elements are a built-in type, it returns * the database-specific type name of the elements. * If the elements are a user-defined type (UDT), * this method returns the fully-qualified SQL type name. * - * @return a String that is the database-specific + * @return a {@code String} that is the database-specific * name for a built-in base type; or the fully-qualified SQL type * name for a base type that is a UDT * @throws SQLException if an error occurs while attempting @@ -90,11 +90,11 @@ public interface Array { /** * Retrieves the JDBC type of the elements in the array designated - * by this Array object. + * by this {@code Array} object. * * @return a constant from the class {@link java.sql.Types} that is * the type code for the elements in the array designated by this - * Array object + * {@code Array} object * @throws SQLException if an error occurs while attempting * to access the base type * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -104,21 +104,21 @@ public interface Array { int getBaseType() throws SQLException; /** - * Retrieves the contents of the SQL ARRAY value designated + * Retrieves the contents of the SQL {@code ARRAY} value designated * by this - * Array object in the form of an array in the Java - * programming language. This version of the method getArray + * {@code Array} object in the form of an array in the Java + * programming language. This version of the method {@code getArray} * uses the type map associated with the connection for customizations of * the type mappings. *

- * Note: When getArray is used to materialize + * Note: When {@code getArray} is used to materialize * a base type that maps to a primitive data type, then it is * implementation-defined whether the array returned is an array of - * that primitive data type or an array of Object. + * that primitive data type or an array of {@code Object}. * * @return an array in the Java programming language that contains - * the ordered elements of the SQL ARRAY value - * designated by this Array object + * the ordered elements of the SQL {@code ARRAY} value + * designated by this {@code Array} object * @throws SQLException if an error occurs while attempting to * access the array * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -128,22 +128,22 @@ public interface Array { Object getArray() throws SQLException; /** - * Retrieves the contents of the SQL ARRAY value designated by this - * Array object. + * Retrieves the contents of the SQL {@code ARRAY} value designated by this + * {@code Array} object. * This method uses - * the specified map for type map customizations + * the specified {@code map} for type map customizations * unless the base type of the array does not match a user-defined - * type in map, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * getArray uses either the given type map or the standard mapping; + * {@code getArray} uses either the given type map or the standard mapping; * it never uses the type map associated with the connection. *

- * Note: When getArray is used to materialize + * Note: When {@code getArray} is used to materialize * a base type that maps to a primitive data type, then it is * implementation-defined whether the array returned is an array of - * that primitive data type or an array of Object. + * that primitive data type or an array of {@code Object}. * - * @param map a java.util.Map object that contains mappings + * @param map a {@code java.util.Map} object that contains mappings * of SQL type names to classes in the Java programming language * @return an array in the Java programming language that contains the ordered * elements of the SQL array designated by this object @@ -156,22 +156,22 @@ public interface Array { Object getArray(java.util.Map> map) throws SQLException; /** - * Retrieves a slice of the SQL ARRAY - * value designated by this Array object, beginning with the - * specified index and containing up to count + * Retrieves a slice of the SQL {@code ARRAY} + * value designated by this {@code Array} object, beginning with the + * specified {@code index} and containing up to {@code count} * successive elements of the SQL array. This method uses the type map * associated with the connection for customizations of the type mappings. *

- * Note: When getArray is used to materialize + * Note: When {@code getArray} is used to materialize * a base type that maps to a primitive data type, then it is * implementation-defined whether the array returned is an array of - * that primitive data type or an array of Object. + * that primitive data type or an array of {@code Object}. * * @param index the array index of the first element to retrieve; * the first element is at index 1 * @param count the number of successive SQL array elements to retrieve - * @return an array containing up to count consecutive elements - * of the SQL array, beginning with element index + * @return an array containing up to {@code count} consecutive elements + * of the SQL array, beginning with element {@code index} * @throws SQLException if an error occurs while attempting to * access the array * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -181,35 +181,35 @@ public interface Array { Object getArray(long index, int count) throws SQLException; /** - * Retrieves a slice of the SQL ARRAY value - * designated by this Array object, beginning with the specified - * index and containing up to count + * Retrieves a slice of the SQL {@code ARRAY} value + * designated by this {@code Array} object, beginning with the specified + * {@code index} and containing up to {@code count} * successive elements of the SQL array. *

* This method uses - * the specified map for type map customizations + * the specified {@code map} for type map customizations * unless the base type of the array does not match a user-defined - * type in map, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * getArray uses either the given type map or the standard mapping; + * {@code getArray} uses either the given type map or the standard mapping; * it never uses the type map associated with the connection. *

- * Note: When getArray is used to materialize + * Note: When {@code getArray} is used to materialize * a base type that maps to a primitive data type, then it is * implementation-defined whether the array returned is an array of - * that primitive data type or an array of Object. + * that primitive data type or an array of {@code Object}. * * @param index the array index of the first element to retrieve; * the first element is at index 1 * @param count the number of successive SQL array elements to * retrieve - * @param map a java.util.Map object + * @param map a {@code java.util.Map} object * that contains SQL type names and the classes in * the Java programming language to which they are mapped - * @return an array containing up to count - * consecutive elements of the SQL ARRAY value designated by this - * Array object, beginning with element - * index + * @return an array containing up to {@code count} + * consecutive elements of the SQL {@code ARRAY} value designated by this + * {@code Array} object, beginning with element + * {@code index} * @throws SQLException if an error occurs while attempting to * access the array * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -221,8 +221,8 @@ public interface Array { /** * Retrieves a result set that contains the elements of the SQL - * ARRAY value - * designated by this Array object. If appropriate, + * {@code ARRAY} value + * designated by this {@code Array} object. If appropriate, * the elements of the array are mapped using the connection's type * map; otherwise, the standard mapping is used. *

@@ -234,7 +234,7 @@ public interface Array { * the order of the indices. * * @return a {@link ResultSet} object containing one row for each - * of the elements in the array designated by this Array + * of the elements in the array designated by this {@code Array} * object, with the rows in ascending order based on the indices. * @throws SQLException if an error occurs while attempting to * access the array @@ -246,13 +246,13 @@ public interface Array { /** * Retrieves a result set that contains the elements of the SQL - * ARRAY value designated by this Array object. + * {@code ARRAY} value designated by this {@code Array} object. * This method uses - * the specified map for type map customizations + * the specified {@code map} for type map customizations * unless the base type of the array does not match a user-defined - * type in map, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * getResultSet uses either the given type map or the standard mapping; + * {@code getResultSet} uses either the given type map or the standard mapping; * it never uses the type map associated with the connection. *

* The result set contains one row for each array element, with @@ -264,8 +264,8 @@ public interface Array { * * @param map contains the mapping of SQL user-defined types to * classes in the Java programming language - * @return a ResultSet object containing one row for each - * of the elements in the array designated by this Array + * @return a {@code ResultSet} object containing one row for each + * of the elements in the array designated by this {@code Array} * object, with the rows in ascending order based on the indices. * @throws SQLException if an error occurs while attempting to * access the array @@ -277,16 +277,16 @@ public interface Array { /** * Retrieves a result set holding the elements of the subarray that - * starts at index index and contains up to - * count successive elements. This method uses + * starts at index {@code index} and contains up to + * {@code count} successive elements. This method uses * the connection's type map to map the elements of the array if * the map contains an entry for the base type. Otherwise, the * standard mapping is used. *

* The result set has one row for each element of the SQL array * designated by this object, with the first row containing the - * element at index index. The result set has - * up to count rows in ascending order based on the + * element at index {@code index}. The result set has + * up to {@code count} rows in ascending order based on the * indices. Each row has two columns: The second column stores * the element value; the first column stores the index into the * array for that element. @@ -294,10 +294,10 @@ public interface Array { * @param index the array index of the first element to retrieve; * the first element is at index 1 * @param count the number of successive SQL array elements to retrieve - * @return a ResultSet object containing up to - * count consecutive elements of the SQL array - * designated by this Array object, starting at - * index index. + * @return a {@code ResultSet} object containing up to + * {@code count} consecutive elements of the SQL array + * designated by this {@code Array} object, starting at + * index {@code index}. * @throws SQLException if an error occurs while attempting to * access the array * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -308,20 +308,20 @@ public interface Array { /** * Retrieves a result set holding the elements of the subarray that - * starts at index index and contains up to - * count successive elements. + * starts at index {@code index} and contains up to + * {@code count} successive elements. * This method uses - * the specified map for type map customizations + * the specified {@code map} for type map customizations * unless the base type of the array does not match a user-defined - * type in map, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * getResultSet uses either the given type map or the standard mapping; + * {@code getResultSet} uses either the given type map or the standard mapping; * it never uses the type map associated with the connection. *

* The result set has one row for each element of the SQL array * designated by this object, with the first row containing the - * element at index index. The result set has - * up to count rows in ascending order based on the + * element at index {@code index}. The result set has + * up to {@code count} rows in ascending order based on the * indices. Each row has two columns: The second column stores * the element value; the first column stores the index into the * array for that element. @@ -329,12 +329,12 @@ public interface Array { * @param index the array index of the first element to retrieve; * the first element is at index 1 * @param count the number of successive SQL array elements to retrieve - * @param map the Map object that contains the mapping + * @param map the {@code Map} object that contains the mapping * of SQL type names to classes in the Java(tm) programming language - * @return a ResultSet object containing up to - * count consecutive elements of the SQL array - * designated by this Array object, starting at - * index index. + * @return a {@code ResultSet} object containing up to + * {@code count} consecutive elements of the SQL array + * designated by this {@code Array} object, starting at + * index {@code index}. * @throws SQLException if an error occurs while attempting to * access the array * @throws SQLFeatureNotSupportedException if the JDBC driver does not support @@ -345,14 +345,14 @@ public interface Array { java.util.Map> map) throws SQLException; /** - * This method frees the Array object and releases the resources that - * it holds. The object is invalid once the free + * This method frees the {@code Array} object and releases the resources that + * it holds. The object is invalid once the {@code free} * method is called. *

- * After free has been called, any attempt to invoke a - * method other than free will result in a SQLException - * being thrown. If free is called multiple times, the subsequent - * calls to free are treated as a no-op. + * After {@code free} has been called, any attempt to invoke a + * method other than {@code free} will result in a {@code SQLException} + * being thrown. If {@code free} is called multiple times, the subsequent + * calls to {@code free} are treated as a no-op. * * @throws SQLException if an error occurs releasing * the Array's resources -- cgit v1.3.1