diff options
| author | Vipin Sharma <vsharma@openjdk.org> | 2020-11-25 16:01:40 +0000 |
|---|---|---|
| committer | Lance Andersen <lancea@openjdk.org> | 2020-11-25 16:01:40 +0000 |
| commit | dee79d605334804118839e9f71151a7e8d1ad27b (patch) | |
| tree | 1cb491cc1f99632467731241c63493d9314bc896 /src/java.sql/share/classes/java/sql/Array.java | |
| parent | cfb175dfdfd57a3da1d0dbc251657312abc0f6f3 (diff) | |
| download | openjdk-dee79d605334804118839e9f71151a7e8d1ad27b.tar.gz openjdk-dee79d605334804118839e9f71151a7e8d1ad27b.zip | |
8253936: Replace <code>...</code> with {@code ...} for java.sql
Reviewed-by: lancea
Diffstat (limited to 'src/java.sql/share/classes/java/sql/Array.java')
| -rw-r--r-- | src/java.sql/share/classes/java/sql/Array.java | 180 |
1 files changed, 90 insertions, 90 deletions
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 - * <code>ARRAY</code>. - * By default, an <code>Array</code> value is a transaction-duration - * reference to an SQL <code>ARRAY</code> value. By default, an <code>Array</code> + * {@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 <code>Array</code> object contains a logical pointer - * to the data in the SQL <code>ARRAY</code> value rather - * than containing the <code>ARRAY</code> 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. * <p> - * The <code>Array</code> interface provides methods for bringing an SQL - * <code>ARRAY</code> value's data to the client as either an array or a - * <code>ResultSet</code> object. - * If the elements of the SQL <code>ARRAY</code> + * 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: * <ul> @@ -47,21 +47,21 @@ package java.sql; * <li>make an entry in a type map that contains * <ul> * <li>the fully-qualified SQL type name of the UDT - * <li>the <code>Class</code> object for the class implementing - * <code>SQLData</code> + * <li>the {@code Class} object for the class implementing + * {@code SQLData} * </ul> * </ul> * <p> * When a type map with an entry for - * the base type is supplied to the methods <code>getArray</code> - * and <code>getResultSet</code>, the mapping - * it contains will be used to map the elements of the <code>ARRAY</code> 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. * <p> - * All methods on the <code>Array</code> 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 <code>Array</code> 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 <code>String</code> 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 <code>Array</code> 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 - * <code>Array</code> 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 <code>ARRAY</code> value designated + * Retrieves the contents of the SQL {@code ARRAY} value designated * by this - * <code>Array</code> object in the form of an array in the Java - * programming language. This version of the method <code>getArray</code> + * {@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. * <p> - * <strong>Note:</strong> When <code>getArray</code> is used to materialize + * <strong>Note:</strong> 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 <code>Object</code>. + * 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 <code>ARRAY</code> value - * designated by this <code>Array</code> 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 <code>ARRAY</code> value designated by this - * <code>Array</code> object. + * Retrieves the contents of the SQL {@code ARRAY} value designated by this + * {@code Array} object. * This method uses - * the specified <code>map</code> 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 <code>map</code>, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * <code>getArray</code> 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. * <p> - * <strong>Note:</strong> When <code>getArray</code> is used to materialize + * <strong>Note:</strong> 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 <code>Object</code>. + * that primitive data type or an array of {@code Object}. * - * @param map a <code>java.util.Map</code> 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<String,Class<?>> map) throws SQLException; /** - * Retrieves a slice of the SQL <code>ARRAY</code> - * value designated by this <code>Array</code> object, beginning with the - * specified <code>index</code> and containing up to <code>count</code> + * 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. * <p> - * <strong>Note:</strong> When <code>getArray</code> is used to materialize + * <strong>Note:</strong> 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 <code>Object</code>. + * 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 <code>count</code> consecutive elements - * of the SQL array, beginning with element <code>index</code> + * @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 <code>ARRAY</code> value - * designated by this <code>Array</code> object, beginning with the specified - * <code>index</code> and containing up to <code>count</code> + * 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. * <P> * This method uses - * the specified <code>map</code> 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 <code>map</code>, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * <code>getArray</code> 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. * <p> - * <strong>Note:</strong> When <code>getArray</code> is used to materialize + * <strong>Note:</strong> 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 <code>Object</code>. + * 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 <code>java.util.Map</code> 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 <code>count</code> - * consecutive elements of the SQL <code>ARRAY</code> value designated by this - * <code>Array</code> object, beginning with element - * <code>index</code> + * @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 - * <code>ARRAY</code> value - * designated by this <code>Array</code> 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. * <p> @@ -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 <code>Array</code> + * 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 - * <code>ARRAY</code> value designated by this <code>Array</code> object. + * {@code ARRAY} value designated by this {@code Array} object. * This method uses - * the specified <code>map</code> 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 <code>map</code>, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * <code>getResultSet</code> 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. * <p> * 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 <code>ResultSet</code> object containing one row for each - * of the elements in the array designated by this <code>Array</code> + * @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 <code>index</code> and contains up to - * <code>count</code> 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. * <P> * 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 <code>index</code>. The result set has - * up to <code>count</code> 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 <code>ResultSet</code> object containing up to - * <code>count</code> consecutive elements of the SQL array - * designated by this <code>Array</code> object, starting at - * index <code>index</code>. + * @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 <code>index</code> and contains up to - * <code>count</code> successive elements. + * starts at index {@code index} and contains up to + * {@code count} successive elements. * This method uses - * the specified <code>map</code> 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 <code>map</code>, in which case it + * type in {@code map}, in which case it * uses the standard mapping. This version of the method - * <code>getResultSet</code> 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. * <P> * 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 <code>index</code>. The result set has - * up to <code>count</code> 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 <code>Map</code> 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 <code>ResultSet</code> object containing up to - * <code>count</code> consecutive elements of the SQL array - * designated by this <code>Array</code> object, starting at - * index <code>index</code>. + * @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<String,Class<?>> map) throws SQLException; /** - * This method frees the <code>Array</code> object and releases the resources that - * it holds. The object is invalid once the <code>free</code> + * 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. * <p> - * After <code>free</code> has been called, any attempt to invoke a - * method other than <code>free</code> will result in a <code>SQLException</code> - * being thrown. If <code>free</code> is called multiple times, the subsequent - * calls to <code>free</code> 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 |
