summaryrefslogtreecommitdiff
path: root/src/java.sql/share/classes/java/sql/ResultSetMetaData.java
diff options
context:
space:
mode:
authorVipin Sharma <vsharma@openjdk.org>2020-10-02 14:50:53 +0000
committerLance Andersen <lancea@openjdk.org>2020-10-02 14:50:53 +0000
commitdffe9db25c19a7e99d3d35c535197bf7e4c15c8a (patch)
tree2f215db9c5d943ca9668d364dbacf994194876c8 /src/java.sql/share/classes/java/sql/ResultSetMetaData.java
parent406db1c270a69868b415362d49202c790da27c70 (diff)
downloadopenjdk-dffe9db25c19a7e99d3d35c535197bf7e4c15c8a.tar.gz
openjdk-dffe9db25c19a7e99d3d35c535197bf7e4c15c8a.zip
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
Diffstat (limited to 'src/java.sql/share/classes/java/sql/ResultSetMetaData.java')
-rw-r--r--src/java.sql/share/classes/java/sql/ResultSetMetaData.java44
1 files changed, 22 insertions, 22 deletions
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 <code>ResultSet</code> 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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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 <code>columnNoNulls</code>,
* <code>columnNullable</code> or <code>columnNullableUnknown</code>
- * @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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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 <code>true</code> if so; <code>false</code> 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
* <code>ResultSet.getObject</code> 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;