From dffe9db25c19a7e99d3d35c535197bf7e4c15c8a Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Fri, 2 Oct 2020 14:50:53 +0000 Subject: 8252537: Updated @exception with @throws 8252536: Replace @exception with @throws for core-libs 8252539: Replace @exception with @throws java.rmi.activation package 8252540: Replace @exception with @throws java.rmi.registry package 8252541: Replace @exception with @throws java.rmi.server package Reviewed-by: rriggs, sspitsyn, lancea --- .../share/classes/java/sql/ResultSetMetaData.java | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/java.sql/share/classes/java/sql/ResultSetMetaData.java') diff --git a/src/java.sql/share/classes/java/sql/ResultSetMetaData.java b/src/java.sql/share/classes/java/sql/ResultSetMetaData.java index ea5659fd333..a56e61d342b 100644 --- a/src/java.sql/share/classes/java/sql/ResultSetMetaData.java +++ b/src/java.sql/share/classes/java/sql/ResultSetMetaData.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2005, 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 @@ -50,7 +50,7 @@ public interface ResultSetMetaData extends Wrapper { * Returns the number of columns in this ResultSet object. * * @return the number of columns - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ int getColumnCount() throws SQLException; @@ -59,7 +59,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isAutoIncrement(int column) throws SQLException; @@ -68,7 +68,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isCaseSensitive(int column) throws SQLException; @@ -77,7 +77,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isSearchable(int column) throws SQLException; @@ -86,7 +86,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isCurrency(int column) throws SQLException; @@ -96,7 +96,7 @@ public interface ResultSetMetaData extends Wrapper { * @param column the first column is 1, the second is 2, ... * @return the nullability status of the given column; one of columnNoNulls, * columnNullable or columnNullableUnknown - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ int isNullable(int column) throws SQLException; @@ -123,7 +123,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isSigned(int column) throws SQLException; @@ -133,7 +133,7 @@ public interface ResultSetMetaData extends Wrapper { * @param column the first column is 1, the second is 2, ... * @return the normal maximum number of characters allowed as the width * of the designated column - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ int getColumnDisplaySize(int column) throws SQLException; @@ -146,7 +146,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return the suggested column title - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getColumnLabel(int column) throws SQLException; @@ -155,7 +155,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return column name - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getColumnName(int column) throws SQLException; @@ -164,7 +164,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return schema name or "" if not applicable - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getSchemaName(int column) throws SQLException; @@ -178,7 +178,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return precision - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ int getPrecision(int column) throws SQLException; @@ -188,7 +188,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return scale - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ int getScale(int column) throws SQLException; @@ -197,7 +197,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return table name or "" if not applicable - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getTableName(int column) throws SQLException; @@ -207,7 +207,7 @@ public interface ResultSetMetaData extends Wrapper { * @param column the first column is 1, the second is 2, ... * @return the name of the catalog for the table in which the given column * appears or "" if not applicable - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getCatalogName(int column) throws SQLException; @@ -216,7 +216,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return SQL type from java.sql.Types - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs * @see Types */ int getColumnType(int column) throws SQLException; @@ -227,7 +227,7 @@ public interface ResultSetMetaData extends Wrapper { * @param column the first column is 1, the second is 2, ... * @return type name used by the database. If the column type is * a user-defined type, then a fully-qualified type name is returned. - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ String getColumnTypeName(int column) throws SQLException; @@ -236,7 +236,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isReadOnly(int column) throws SQLException; @@ -245,7 +245,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isWritable(int column) throws SQLException; @@ -254,7 +254,7 @@ public interface ResultSetMetaData extends Wrapper { * * @param column the first column is 1, the second is 2, ... * @return true if so; false otherwise - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs */ boolean isDefinitelyWritable(int column) throws SQLException; @@ -272,7 +272,7 @@ public interface ResultSetMetaData extends Wrapper { * language that would be used by the method * ResultSet.getObject to retrieve the value in the specified * column. This is the class name used for custom mapping. - * @exception SQLException if a database access error occurs + * @throws SQLException if a database access error occurs * @since 1.2 */ String getColumnClassName(int column) throws SQLException; -- cgit v1.3.1