diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java index a82a242b66..2c66c3f33d 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java @@ -50,7 +50,7 @@ import org.springframework.util.StringUtils; * top-level class and it must have a default or no-arg constructor. * *
Column values are mapped based on matching the column name as obtained from result set
- * metadata to public setters for the corresponding properties. The names are matched either
+ * meta-data to public setters for the corresponding properties. The names are matched either
* directly or by transforming a name separating the parts with underscores to the same name
* using "camel" case.
*
@@ -214,7 +214,7 @@ public class BeanPropertyRowMapper Utilizes public setters and result set metadata.
+ * Utilizes public setters and result set meta-data.
* @see java.sql.ResultSetMetaData
*/
@Override
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/PreparedStatementCreatorFactory.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/PreparedStatementCreatorFactory.java
index 105e4f638d..05aab898c4 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/PreparedStatementCreatorFactory.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/PreparedStatementCreatorFactory.java
@@ -244,7 +244,7 @@ public class PreparedStatementCreatorFactory {
for (int i = 0; i < this.parameters.size(); i++) {
Object in = this.parameters.get(i);
SqlParameter declaredParameter;
- // SqlParameterValue overrides declared parameter metadata, in particular for
+ // SqlParameterValue overrides declared parameter meta-data, in particular for
// independence from the declared parameter position in case of named parameters.
if (in instanceof SqlParameterValue) {
SqlParameterValue paramValue = (SqlParameterValue) in;
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/ResultSetSupportingSqlParameter.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/ResultSetSupportingSqlParameter.java
index 1a72b51020..d13f30c4b4 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/ResultSetSupportingSqlParameter.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/ResultSetSupportingSqlParameter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public class ResultSetSupportingSqlParameter extends SqlParameter {
/**
- * This implementation always returns {@code false}.
+ * This implementation always returns {@code false}.
*/
@Override
public boolean isInputValueProvided() {
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlInOutParameter.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlInOutParameter.java
index 1c25a16b85..bec02349db 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlInOutParameter.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlInOutParameter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,8 +21,7 @@ package org.springframework.jdbc.core;
* Will return {@code true} for SqlParameter's {@link #isInputValueProvided}
* test, in contrast to a standard SqlOutParameter.
*
- * Output parameters - like all stored procedure parameters -
- * must have names.
+ * Output parameters - like all stored procedure parameters - must have names.
*
* @author Thomas Risberg
* @author Juergen Hoeller
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlOutParameter.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlOutParameter.java
index 4029b7cf08..2026a361d7 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlOutParameter.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlOutParameter.java
@@ -19,12 +19,10 @@ package org.springframework.jdbc.core;
import org.springframework.lang.Nullable;
/**
- * Subclass of SqlParameter to represent an output parameter.
- * No additional properties: instanceof will be used to check
- * for such types.
+ * Subclass of {@link SqlParameter} to represent an output parameter.
+ * No additional properties: instanceof will be used to check for such types.
*
- * Output parameters - like all stored procedure parameters -
- * must have names.
+ * Output parameters - like all stored procedure parameters - must have names.
*
* @author Rod Johnson
* @author Thomas Risberg
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameter.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameter.java
index cc0bc49bdd..4d8923bbfb 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameter.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameter.java
@@ -172,7 +172,7 @@ public class SqlParameter {
/**
* Return whether this parameter is an implicit return parameter used during the
- * results preocessing of the CallableStatement.getMoreResults/getUpdateCount.
+ * results processing of {@code CallableStatement.getMoreResults/getUpdateCount}.
* This implementation always returns {@code false}.
*/
public boolean isResultsParameter() {
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameterValue.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameterValue.java
index 0668f4c0b3..7c556c917b 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameterValue.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlParameterValue.java
@@ -19,7 +19,7 @@ package org.springframework.jdbc.core;
import org.springframework.lang.Nullable;
/**
- * Object to represent a SQL parameter value, including parameter metadata
+ * Object to represent a SQL parameter value, including parameter meta-data
* such as the SQL type and the scale for numeric values.
*
* Designed for use with {@link JdbcTemplate}'s operations that take an array of
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnResultSet.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnResultSet.java
index 02e956c291..6ea9cecaa7 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnResultSet.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnResultSet.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ package org.springframework.jdbc.core;
* must be provided to handle any returned rows.
*
* Returned {@link java.sql.ResultSet ResultSets} - like all stored procedure
- * parameters - must have names.
+ * parameters - must have names.
*
* @author Thomas Risberg
* @author Juergen Hoeller
@@ -57,13 +57,13 @@ public class SqlReturnResultSet extends ResultSetSupportingSqlParameter {
super(name, 0, mapper);
}
+
/**
- * Return whether this parameter is an implicit return parameter used during the
- * results preocessing of the CallableStatement.getMoreResults/getUpdateCount.
- * This implementation always returns {@code true}.
+ * This implementation always returns {@code true}.
*/
@Override
public boolean isResultsParameter() {
return true;
}
+
}
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnUpdateCount.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnUpdateCount.java
index 397ce33e6f..d78431fbd4 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnUpdateCount.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlReturnUpdateCount.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2002-2018 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.springframework.jdbc.core;
import java.sql.Types;
@@ -13,7 +29,7 @@ import java.sql.Types;
public class SqlReturnUpdateCount extends SqlParameter {
/**
- * Create a new instance of the {@link SqlReturnUpdateCount} class.
+ * Create a new SqlReturnUpdateCount.
* @param name name of the parameter, as used in input and output maps
*/
public SqlReturnUpdateCount(String name) {
@@ -22,9 +38,7 @@ public class SqlReturnUpdateCount extends SqlParameter {
/**
- * Return whether this parameter holds input values that should be set
- * before execution even if they are {@code null}.
- * This implementation always returns {@code false}.
+ * This implementation always returns {@code false}.
*/
@Override
public boolean isInputValueProvided() {
@@ -32,12 +46,11 @@ public class SqlReturnUpdateCount extends SqlParameter {
}
/**
- * Return whether this parameter is an implicit return parameter used during the
- * results preocessing of the CallableStatement.getMoreResults/getUpdateCount.
- * This implementation always returns {@code true}.
+ * This implementation always returns {@code true}.
*/
@Override
public boolean isResultsParameter() {
return true;
}
+
}
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
index 5359796e66..c963d1de58 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
@@ -24,7 +24,7 @@ import org.springframework.jdbc.core.SqlParameter;
import org.springframework.lang.Nullable;
/**
- * Interface specifying the API to be implemented by a class providing call metadata.
+ * Interface specifying the API to be implemented by a class providing call meta-data.
*
* This is intended for internal use by Spring's
* {@link org.springframework.jdbc.core.simple.SimpleJdbcCall}.
@@ -42,9 +42,9 @@ public interface CallMetaDataProvider {
void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException;
/**
- * Initialize the database specific management of procedure column meta data.
+ * Initialize the database specific management of procedure column meta-data.
* This is only called for databases that are supported. This initialization
- * can be turned off by specifying that column meta data should not be used.
+ * can be turned off by specifying that column meta-data should not be used.
* @param databaseMetaData used to retrieve database specific information
* @param catalogName name of catalog to use (or {@code null} if none)
* @param schemaName name of schema name to use (or {@code null} if none)
@@ -56,44 +56,44 @@ public interface CallMetaDataProvider {
@Nullable String schemaName, @Nullable String procedureName) throws SQLException;
/**
- * Provide any modification of the procedure name passed in to match the meta data currently used.
+ * Provide any modification of the procedure name passed in to match the meta-data currently used.
* This could include altering the case.
*/
@Nullable
String procedureNameToUse(@Nullable String procedureName);
/**
- * Provide any modification of the catalog name passed in to match the meta data currently used.
+ * Provide any modification of the catalog name passed in to match the meta-data currently used.
* This could include altering the case.
*/
@Nullable
String catalogNameToUse(@Nullable String catalogName);
/**
- * Provide any modification of the schema name passed in to match the meta data currently used.
+ * Provide any modification of the schema name passed in to match the meta-data currently used.
* This could include altering the case.
*/
@Nullable
String schemaNameToUse(@Nullable String schemaName);
/**
- * Provide any modification of the catalog name passed in to match the meta data currently used.
- * The returned value will be used for meta data lookups. This could include altering the case
+ * Provide any modification of the catalog name passed in to match the meta-data currently used.
+ * The returned value will be used for meta-data lookups. This could include altering the case
* used or providing a base catalog if none is provided.
*/
@Nullable
String metaDataCatalogNameToUse(@Nullable String catalogName) ;
/**
- * Provide any modification of the schema name passed in to match the meta data currently used.
- * The returned value will be used for meta data lookups. This could include altering the case
+ * Provide any modification of the schema name passed in to match the meta-data currently used.
+ * The returned value will be used for meta-data lookups. This could include altering the case
* used or providing a base schema if none is provided.
*/
@Nullable
String metaDataSchemaNameToUse(@Nullable String schemaName);
/**
- * Provide any modification of the column name passed in to match the meta data currently used.
+ * Provide any modification of the column name passed in to match the meta-data currently used.
* This could include altering the case.
* @param parameterName name of the parameter of column
*/
@@ -101,42 +101,42 @@ public interface CallMetaDataProvider {
String parameterNameToUse(@Nullable String parameterName);
/**
- * Create a default out parameter based on the provided meta data.
+ * Create a default out parameter based on the provided meta-data.
* This is used when no explicit parameter declaration has been made.
* @param parameterName the name of the parameter
- * @param meta meta data used for this call
+ * @param meta meta-data used for this call
* @return the configured SqlOutParameter
*/
SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta);
/**
- * Create a default inout parameter based on the provided meta data.
+ * Create a default inout parameter based on the provided meta-data.
* This is used when no explicit parameter declaration has been made.
* @param parameterName the name of the parameter
- * @param meta meta data used for this call
+ * @param meta meta-data used for this call
* @return the configured SqlInOutParameter
*/
SqlParameter createDefaultInOutParameter(String parameterName, CallParameterMetaData meta);
/**
- * Create a default in parameter based on the provided meta data.
+ * Create a default in parameter based on the provided meta-data.
* This is used when no explicit parameter declaration has been made.
* @param parameterName the name of the parameter
- * @param meta meta data used for this call
+ * @param meta meta-data used for this call
* @return the configured SqlParameter
*/
SqlParameter createDefaultInParameter(String parameterName, CallParameterMetaData meta);
/**
- * Get the name of the current user. Useful for meta data lookups etc.
+ * Get the name of the current user. Useful for meta-data lookups etc.
* @return current user name from database connection
*/
@Nullable
String getUserName();
/**
- * Does this database support returning ResultSets that should be retrieved with the JDBC call.
- * {@link java.sql.Statement#getResultSet()}
+ * Does this database support returning ResultSets that should be retrieved with the JDBC call:
+ * {@link java.sql.Statement#getResultSet()}?
*/
boolean isReturnResultSetSupported();
@@ -153,7 +153,7 @@ public interface CallMetaDataProvider {
int getRefCursorSqlType();
/**
- * Are we using the meta data for the procedure columns?
+ * Are we using the meta-data for the procedure columns?
*/
boolean isProcedureColumnMetaDataUsed();
@@ -165,18 +165,18 @@ public interface CallMetaDataProvider {
boolean byPassReturnParameter(String parameterName);
/**
- * Get the call parameter metadata that is currently used.
+ * Get the call parameter meta-data that is currently used.
* @return List of {@link CallParameterMetaData}
*/
List Thanks to Mike Youngstrom and Bruce Campbell for submitting the original suggestion for the Oracle
@@ -48,16 +48,16 @@ public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider {
/**
- * Constructor used to initialize with provided database metadata.
- * @param databaseMetaData metadata to be used
+ * Constructor used to initialize with provided database meta-data.
+ * @param databaseMetaData meta-data to be used
*/
public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException {
this(databaseMetaData, false);
}
/**
- * Constructor used to initialize with provided database metadata.
- * @param databaseMetaData metadata to be used
+ * Constructor used to initialize with provided database meta-data.
+ * @param databaseMetaData meta-data to be used
* @param includeSynonyms whether to include synonyms
*/
public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData, boolean includeSynonyms)
@@ -115,14 +115,14 @@ public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider {
throws SQLException {
if (!this.includeSynonyms) {
- logger.debug("Defaulting to no synonyms in table metadata lookup");
+ logger.debug("Defaulting to no synonyms in table meta-data lookup");
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
return;
}
Connection con = databaseMetaData.getConnection();
if (con == null) {
- logger.warn("Unable to include synonyms in table metadata lookup - no Connection from DatabaseMetaData");
+ logger.warn("Unable to include synonyms in table meta-data lookup - no Connection from DatabaseMetaData");
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
return;
}
@@ -133,13 +133,13 @@ public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider {
}
catch (ClassNotFoundException | SQLException ex) {
if (logger.isWarnEnabled()) {
- logger.warn("Unable to include synonyms in table metadata lookup - no Oracle Connection: " + ex);
+ logger.warn("Unable to include synonyms in table meta-data lookup - no Oracle Connection: " + ex);
}
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
return;
}
- logger.debug("Including synonyms in table metadata lookup");
+ logger.debug("Including synonyms in table meta-data lookup");
Method setIncludeSynonyms;
Boolean originalValueForIncludeSynonyms;
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java
index 941c430f55..fd7a8467b0 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java
@@ -23,7 +23,7 @@ import java.util.List;
import org.springframework.lang.Nullable;
/**
- * Interface specifying the API to be implemented by a class providing table metadata.
+ * Interface specifying the API to be implemented by a class providing table meta-data.
* This is intended for internal use by the Simple JDBC classes.
*
* @author Thomas Risberg
@@ -32,15 +32,15 @@ import org.springframework.lang.Nullable;
public interface TableMetaDataProvider {
/**
- * Initialize using the database metadata provided.
+ * Initialize using the database meta-data provided.
* @param databaseMetaData used to retrieve database specific information
* @throws SQLException in case of initialization failure
*/
void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException;
/**
- * Initialize using provided database metadata, table and column information.
- * This initialization can be turned off by specifying that column meta data should not be used.
+ * Initialize using provided database meta-data, table and column information.
+ * This initialization can be turned off by specifying that column meta-data should not be used.
* @param databaseMetaData used to retrieve database specific information
* @param catalogName name of catalog to use (or {@code null} if none)
* @param schemaName name of schema name to use (or {@code null} if none)
@@ -51,46 +51,49 @@ public interface TableMetaDataProvider {
@Nullable String schemaName, @Nullable String tableName) throws SQLException;
/**
- * Get the table name formatted based on metadata information. This could include altering the case.
+ * Get the table name formatted based on meta-data information.
+ * This could include altering the case.
*/
@Nullable
String tableNameToUse(@Nullable String tableName);
/**
- * Get the catalog name formatted based on metadata information. This could include altering the case.
+ * Get the catalog name formatted based on meta-data information.
+ * This could include altering the case.
*/
@Nullable
String catalogNameToUse(@Nullable String catalogName);
/**
- * Get the schema name formatted based on metadata information. This could include altering the case.
+ * Get the schema name formatted based on meta-data information.
+ * This could include altering the case.
*/
@Nullable
String schemaNameToUse(@Nullable String schemaName);
/**
- * Provide any modification of the catalog name passed in to match the meta data currently used.
- * The returned value will be used for meta data lookups. This could include altering the case used or
- * providing a base catalog if none is provided.
+ * Provide any modification of the catalog name passed in to match the meta-data currently used.
+ * The returned value will be used for meta-data lookups.
+ * This could include altering the case used or providing a base catalog if none is provided.
*/
@Nullable
String metaDataCatalogNameToUse(@Nullable String catalogName) ;
/**
- * Provide any modification of the schema name passed in to match the meta data currently used.
- * The returned value will be used for meta data lookups. This could include altering the case used or
- * providing a base schema if none is provided.
+ * Provide any modification of the schema name passed in to match the meta-data currently used.
+ * The returned value will be used for meta-data lookups.
+ * This could include altering the case used or providing a base schema if none is provided.
*/
@Nullable
String metaDataSchemaNameToUse(@Nullable String schemaName) ;
/**
- * Are we using the meta data for the table columns?
+ * Are we using the meta-data for the table columns?
*/
boolean isTableColumnMetaDataUsed();
/**
- * Does this database support the JDBC 3.0 feature of retrieving generated keys
+ * Does this database support the JDBC 3.0 feature of retrieving generated keys:
* {@link java.sql.DatabaseMetaData#supportsGetGeneratedKeys()}?
*/
boolean isGetGeneratedKeysSupported();
@@ -103,19 +106,19 @@ public interface TableMetaDataProvider {
boolean isGetGeneratedKeysSimulated();
/**
- * Get the simple query to retrieve a generated key
+ * Get the simple query to retrieve a generated key.
*/
@Nullable
String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName);
/**
- * Does this database support a column name String array for retrieving generated keys
- * {@link java.sql.Connection#createStruct(String, Object[])}
+ * Does this database support a column name String array for retrieving generated keys:
+ * {@link java.sql.Connection#createStruct(String, Object[])}?
*/
boolean isGeneratedKeysColumnNameArraySupported();
/**
- * Get the table parameter metadata that is currently used.
+ * Get the table parameter meta-data that is currently used.
* @return List of {@link TableParameterMetaData}
*/
List This class provides the base SPI for {@link SimpleJdbcCall}.
*
* @author Thomas Risberg
* @author Juergen Hoeller
@@ -55,7 +56,7 @@ public abstract class AbstractJdbcCall {
/** Lower-level class used to execute SQL */
private final JdbcTemplate jdbcTemplate;
- /** Context used to retrieve and manage database metadata */
+ /** Context used to retrieve and manage database meta-data */
private final CallMetaDataContext callMetaDataContext = new CallMetaDataContext();
/** List of SqlParameter objects */
@@ -214,7 +215,7 @@ public abstract class AbstractJdbcCall {
}
/**
- * Specify whether the parameter metadata for the call should be used.
+ * Specify whether the parameter meta-data for the call should be used.
* The default is {@code true}.
*/
public void setAccessCallParameterMetaData(boolean accessCallParameterMetaData) {
@@ -222,7 +223,7 @@ public abstract class AbstractJdbcCall {
}
/**
- * Get the call string that should be used based on parameters and meta data.
+ * Get the call string that should be used based on parameters and meta-data.
*/
@Nullable
public String getCallString() {
@@ -276,7 +277,7 @@ public abstract class AbstractJdbcCall {
//-------------------------------------------------------------------------
/**
- * Compile this JdbcCall using provided parameters and meta data plus other settings.
+ * Compile this JdbcCall using provided parameters and meta-data plus other settings.
* This finalizes the configuration for this object and subsequent attempts to compile are
* ignored. This will be implicitly called the first time an un-compiled call is executed.
* @throws org.springframework.dao.InvalidDataAccessApiUsageException if the object hasn't
@@ -426,7 +427,7 @@ public abstract class AbstractJdbcCall {
/**
* Get a List of all the call parameters to be used for call.
- * This includes any parameters added based on meta data processing.
+ * This includes any parameters added based on meta-data processing.
*/
protected List The meta data processing is based on the DatabaseMetaData provided by
+ * The meta-data processing is based on the DatabaseMetaData provided by
* the JDBC driver. Since we rely on the JDBC driver, this "auto-detection"
- * can only be used for databases that are known to provide accurate meta data.
+ * can only be used for databases that are known to provide accurate meta-data.
* These currently include Derby, MySQL, Microsoft SQL Server, Oracle, DB2,
* Sybase and PostgreSQL. For any other databases you are required to declare
* all parameters explicitly. You can of course declare all parameters
- * explicitly even if the database provides the necessary meta data. In that
+ * explicitly even if the database provides the necessary meta-data. In that
* case your declared parameters will take precedence. You can also turn off
- * any metadata processing if you want to use parameter names that do not
+ * any meta-data processing if you want to use parameter names that do not
* match what is declared during the stored procedure compilation.
*
- * The actual insert is being handled using Spring's
- * {@link org.springframework.jdbc.core.JdbcTemplate}.
+ * The actual insert is being handled using Spring's {@link JdbcTemplate}.
*
* Many of the configuration methods return the current instance of the
* SimpleJdbcCall in order to provide the ability to chain multiple ones
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java
index 6cb91185c7..4067c86e06 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java
@@ -71,7 +71,7 @@ public interface SimpleJdbcCallOperations {
/**
* Specify one or more parameters if desired. These parameters will be supplemented with
- * any parameter information retrieved from the database meta data.
+ * any parameter information retrieved from the database meta-data.
* Note that only parameters declared as {@code SqlParameter} and {@code SqlInOutParameter}
* will be used to provide input values. This is different from the {@code StoredProcedure}
* class which - for backwards compatibility reasons - allows input values to be provided
@@ -96,7 +96,7 @@ public interface SimpleJdbcCallOperations {
SimpleJdbcCallOperations returningResultSet(String parameterName, RowMapper> rowMapper);
/**
- * Turn off any processing of parameter meta data information obtained via JDBC.
+ * Turn off any processing of parameter meta-data information obtained via JDBC.
* @return the instance of this SimpleJdbcCall
*/
SimpleJdbcCallOperations withoutProcedureColumnMetaDataAccess();
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java
index d670e448e9..ab2f159f00 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java
@@ -26,22 +26,23 @@ import org.springframework.jdbc.support.KeyHolder;
/**
* A SimpleJdbcInsert is a multi-threaded, reusable object providing easy insert
- * capabilities for a table. It provides meta data processing to simplify the code
+ * capabilities for a table. It provides meta-data processing to simplify the code
* needed to construct a basic insert statement. All you need to provide is the
* name of the table and a Map containing the column names and the column values.
*
- * The meta data processing is based on the DatabaseMetaData provided by the
+ * The meta-data processing is based on the DatabaseMetaData provided by the
* JDBC driver. As long as the JDBC driver can provide the names of the columns
* for a specified table than we can rely on this auto-detection feature. If that
* is not the case, then the column names must be specified explicitly.
*
- * The actual insert is being handled using Spring's
- * {@link org.springframework.jdbc.core.JdbcTemplate}.
+ * The actual insert is being handled using Spring's {@link JdbcTemplate}.
*
- * Many of the configuration methods return the current instance of the SimpleJdbcInsert
- * to provide the ability to chain multiple ones together in a "fluent" interface style.
+ * Many of the configuration methods return the current instance of the
+ * SimpleJdbcInsert to provide the ability to chain multiple ones together
+ * in a "fluent" interface style.
*
* @author Thomas Risberg
+ * @author Juergen Hoeller
* @since 2.5
* @see java.sql.DatabaseMetaData
* @see org.springframework.jdbc.core.JdbcTemplate
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsertOperations.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsertOperations.java
index b260dc825b..46a4e36340 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsertOperations.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsertOperations.java
@@ -67,13 +67,13 @@ public interface SimpleJdbcInsertOperations {
SimpleJdbcInsertOperations usingGeneratedKeyColumns(String... columnNames);
/**
- * Turn off any processing of column meta data information obtained via JDBC.
+ * Turn off any processing of column meta-data information obtained via JDBC.
* @return the instance of this SimpleJdbcInsert
*/
SimpleJdbcInsertOperations withoutTableColumnMetaDataAccess();
/**
- * Include synonyms for the column meta data lookups via JDBC.
+ * Include synonyms for the column meta-data lookups via JDBC.
* Note: This is only necessary to include for Oracle since other databases
* supporting synonyms seems to include the synonyms automatically.
* @return the instance of this SimpleJdbcInsert
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/package-info.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/package-info.java
index f5723ffdf8..cc76422271 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/package-info.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/package-info.java
@@ -1,9 +1,9 @@
/**
- * Simplification layer over JdbcTemplate for Java 5 and above.
+ * Simplification layer for table inserts and stored procedure calls.
*
- * {@code SimpleJdbcInsert} and {@code SimpleJdbcCall} are classes that takes advantage
- * of database metadata provided by the JDBC driver to simplify the application code. Much of the
- * parameter specification becomes unnecessary since it can be looked up in the metadata.
+ * {@code SimpleJdbcInsert} and {@code SimpleJdbcCall} take advantage of database
+ * meta-data provided by the JDBC driver to simplify the application code. Much of the
+ * parameter specification becomes unnecessary since it can be looked up in the meta-data.
*/
@NonNullApi
@NonNullFields
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseMetaDataCallback.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseMetaDataCallback.java
index 8b283c2633..37617e03dd 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseMetaDataCallback.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseMetaDataCallback.java
@@ -21,7 +21,7 @@ import java.sql.SQLException;
/**
* A callback interface used by the JdbcUtils class. Implementations of this
- * interface perform the actual work of extracting database meta data, but
+ * interface perform the actual work of extracting database meta-data, but
* don't need to worry about exception handling. SQLExceptions will be caught
* and handled correctly by the JdbcUtils class.
*
@@ -32,15 +32,15 @@ import java.sql.SQLException;
public interface DatabaseMetaDataCallback {
/**
- * Implementations must implement this method to process the meta data
+ * Implementations must implement this method to process the meta-data
* passed in. Exactly what the implementation chooses to do is up to it.
* @param dbmd the DatabaseMetaData to process
- * @return a result object extracted from the meta data
+ * @return a result object extracted from the meta-data
* (can be an arbitrary object, as needed by the implementation)
* @throws SQLException if a SQLException is encountered getting
* column values (that is, there's no need to catch SQLException)
* @throws MetaDataAccessException in case of other failures while
- * extracting meta data (for example, reflection failure)
+ * extracting meta-data (for example, reflection failure)
*/
Object processMetaData(DatabaseMetaData dbmd) throws SQLException, MetaDataAccessException;
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcAccessor.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcAccessor.java
index 17350cfbf3..20b4919ceb 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcAccessor.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcAccessor.java
@@ -81,7 +81,7 @@ public abstract class JdbcAccessor implements InitializingBean {
/**
* Specify the database product name for the DataSource that this accessor uses.
* This allows to initialize a SQLErrorCodeSQLExceptionTranslator without
- * obtaining a Connection from the DataSource to get the metadata.
+ * obtaining a Connection from the DataSource to get the meta-data.
* @param dbName the database product name that identifies the error codes entry
* @see SQLErrorCodeSQLExceptionTranslator#setDatabaseProductName
* @see java.sql.DatabaseMetaData#getDatabaseProductName()
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
index 8470126f43..d2766dd70b 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
@@ -296,19 +296,19 @@ public abstract class JdbcUtils {
}
/**
- * Extract database meta data via the given DatabaseMetaDataCallback.
- * This method will open a connection to the database and retrieve the database metadata.
+ * Extract database meta-data via the given DatabaseMetaDataCallback.
+ * This method will open a connection to the database and retrieve the database meta-data.
* Since this method is called before the exception translation feature is configured for
* a datasource, this method can not rely on the SQLException translation functionality.
* Any exceptions will be wrapped in a MetaDataAccessException. This is a checked exception
* and any calling code should catch and handle this exception. You can just log the
* error and hope for the best, but there is probably a more serious error that will
* reappear when you try to access the database again.
- * @param dataSource the DataSource to extract metadata for
+ * @param dataSource the DataSource to extract meta-data for
* @param action callback that will do the actual work
* @return object containing the extracted information, as returned by
* the DatabaseMetaDataCallback's {@code processMetaData} method
- * @throws MetaDataAccessException if meta data access failed
+ * @throws MetaDataAccessException if meta-data access failed
*/
public static Object extractDatabaseMetaData(DataSource dataSource, DatabaseMetaDataCallback action)
throws MetaDataAccessException {
@@ -324,7 +324,7 @@ public abstract class JdbcUtils {
return action.processMetaData(metaData);
}
catch (CannotGetJdbcConnectionException ex) {
- throw new MetaDataAccessException("Could not get Connection for extracting meta data", ex);
+ throw new MetaDataAccessException("Could not get Connection for extracting meta-data", ex);
}
catch (SQLException ex) {
throw new MetaDataAccessException("Error while extracting DatabaseMetaData", ex);
@@ -341,7 +341,7 @@ public abstract class JdbcUtils {
/**
* Call the specified method on DatabaseMetaData for the given DataSource,
* and extract the invocation result.
- * @param dataSource the DataSource to extract meta data for
+ * @param dataSource the DataSource to extract meta-data for
* @param metaDataMethodName the name of the DatabaseMetaData method to call
* @return the object returned by the specified DatabaseMetaData method
* @throws MetaDataAccessException if we couldn't access the DatabaseMetaData
@@ -408,7 +408,7 @@ public abstract class JdbcUtils {
/**
* Extract a common name for the target database in use even if
* various drivers/platforms provide varying names at runtime.
- * @param source the name as provided in database metadata
+ * @param source the name as provided in database meta-data
* @return the common name to be used (e.g. "DB2" or "Sybase")
*/
@Nullable
@@ -446,7 +446,7 @@ public abstract class JdbcUtils {
* columnLabel - the label for the column specified with the SQL AS clause.
* If the SQL AS clause was not specified, then the label is the name of the column.
* @return the column name to use
- * @param resultSetMetaData the current meta data to use
+ * @param resultSetMetaData the current meta-data to use
* @param columnIndex the index of the column for the look up
* @throws SQLException in case of lookup failure
*/
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/MetaDataAccessException.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/MetaDataAccessException.java
index 45d9d57f1c..9923a7580f 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/MetaDataAccessException.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/MetaDataAccessException.java
@@ -19,11 +19,11 @@ package org.springframework.jdbc.support;
import org.springframework.core.NestedCheckedException;
/**
- * Exception indicating that something went wrong during JDBC metadata lookup.
+ * Exception indicating that something went wrong during JDBC meta-data lookup.
*
* This is a checked exception since we want it to be caught, logged and
* handled rather than cause the application to fail. Failure to read JDBC
- * metadata is usually not a fatal problem.
+ * meta-data is usually not a fatal problem.
*
* @author Thomas Risberg
* @since 1.0.1
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java
index 3cbdef779e..ca797cef5f 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java
@@ -45,7 +45,7 @@ import org.springframework.lang.Nullable;
* concrete and is typically used itself, in which case this rule doesn't apply.
* Setting this property will cause a Connection to be obtained from
- * the DataSource to get the metadata.
- * @param dataSource DataSource to use to find metadata and establish
+ * the DataSource to get the meta-data.
+ * @param dataSource DataSource to use to find meta-data and establish
* which error codes are usable
* @see SQLErrorCodesFactory#getErrorCodes(javax.sql.DataSource)
* @see java.sql.DatabaseMetaData#getDatabaseProductName()
@@ -139,7 +139,7 @@ public class SQLErrorCodeSQLExceptionTranslator extends AbstractFallbackSQLExcep
/**
* Set the database product name for this translator.
* Setting this property will avoid obtaining a Connection from the DataSource
- * to get the metadata.
+ * to get the meta-data.
* @param dbName the database product name that identifies the error codes entry
* @see SQLErrorCodesFactory#getErrorCodes(String)
* @see java.sql.DatabaseMetaData#getDatabaseProductName()
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java
index f175a28720..00351f72b3 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java
@@ -155,7 +155,7 @@ public class SQLErrorCodesFactory {
/**
* Return the {@link SQLErrorCodes} instance for the given database.
- * No need for a database metadata lookup.
+ * No need for a database meta-data lookup.
* @param databaseName the database name (must not be {@code null})
* @return the {@code SQLErrorCodes} instance for the given database
* @throws IllegalArgumentException if the supplied database name is {@code null}
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/SqlRowSet.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/SqlRowSet.java
index ac434886b5..83226f9f54 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/SqlRowSet.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/SqlRowSet.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,18 +27,17 @@ import java.util.Map;
import org.springframework.jdbc.InvalidResultSetAccessException;
/**
- * Mirror interface for {@link javax.sql.RowSet}, representing
- * disconnected {@link java.sql.ResultSet} data.
+ * Mirror interface for {@link javax.sql.RowSet}, representing a disconnected variant of
+ * {@link java.sql.ResultSet} data.
*
- * The main difference to the standard JDBC RowSet is that a
- * {@link java.sql.SQLException} is never thrown here. This allows a
- * SqlRowSet to be used without having to deal with checked exceptions.
- * A SqlRowSet will throw Spring's {@link InvalidResultSetAccessException}
+ * The main difference to the standard JDBC RowSet is that a {@link java.sql.SQLException}
+ * is never thrown here. This allows a SqlRowSet to be used without having to deal with
+ * checked exceptions. A SqlRowSet will throw Spring's {@link InvalidResultSetAccessException}
* instead (when appropriate).
*
- * Note: This interface extends the {@code java.io.Serializable} marker
- * interface. Implementations, which typically hold disconnected data,
- * are encouraged to be actually serializable (as far as possible).
+ * Note: This interface extends the {@code java.io.Serializable} marker interface.
+ * Implementations, which typically hold disconnected data, are encouraged to be actually
+ * serializable (as far as possible).
*
* @author Thomas Risberg
* @author Juergen Hoeller
@@ -51,7 +50,7 @@ import org.springframework.jdbc.InvalidResultSetAccessException;
public interface SqlRowSet extends Serializable {
/**
- * Retrieve the meta data, i.e. number, types and properties
+ * Retrieve the meta-data, i.e. number, types and properties
* for the columns of this row set.
* @return a corresponding SqlRowSetMetaData instance
* @see java.sql.ResultSet#getMetaData()
@@ -70,8 +69,7 @@ public interface SqlRowSet extends Serializable {
// RowSet methods for extracting data values
/**
- * Retrieve the value of the indicated column in the current row
- * as a BigDecimal object.
+ * Retrieve the value of the indicated column in the current row as a BigDecimal object.
* @param columnIndex the column index
* @return an BigDecimal object representing the column value
* @see java.sql.ResultSet#getBigDecimal(int)
@@ -79,8 +77,7 @@ public interface SqlRowSet extends Serializable {
BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a BigDecimal object.
+ * Retrieve the value of the indicated column in the current row as a BigDecimal object.
* @param columnLabel the column label
* @return an BigDecimal object representing the column value
* @see java.sql.ResultSet#getBigDecimal(String)
@@ -88,8 +85,7 @@ public interface SqlRowSet extends Serializable {
BigDecimal getBigDecimal(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a boolean.
+ * Retrieve the value of the indicated column in the current row as a boolean.
* @param columnIndex the column index
* @return a boolean representing the column value
* @see java.sql.ResultSet#getBoolean(int)
@@ -97,8 +93,7 @@ public interface SqlRowSet extends Serializable {
boolean getBoolean(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a boolean.
+ * Retrieve the value of the indicated column in the current row as a boolean.
* @param columnLabel the column label
* @return a boolean representing the column value
* @see java.sql.ResultSet#getBoolean(String)
@@ -106,8 +101,7 @@ public interface SqlRowSet extends Serializable {
boolean getBoolean(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a byte.
+ * Retrieve the value of the indicated column in the current row as a byte.
* @param columnIndex the column index
* @return a byte representing the column value
* @see java.sql.ResultSet#getByte(int)
@@ -115,8 +109,7 @@ public interface SqlRowSet extends Serializable {
byte getByte(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a byte.
+ * Retrieve the value of the indicated column in the current row as a byte.
* @param columnLabel the column label
* @return a byte representing the column value
* @see java.sql.ResultSet#getByte(String)
@@ -124,8 +117,7 @@ public interface SqlRowSet extends Serializable {
byte getByte(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Date object.
+ * Retrieve the value of the indicated column in the current row as a Date object.
* @param columnIndex the column index
* @return a Date object representing the column value
* @see java.sql.ResultSet#getDate(int)
@@ -133,8 +125,7 @@ public interface SqlRowSet extends Serializable {
Date getDate(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Date object.
+ * Retrieve the value of the indicated column in the current row as a Date object.
* @param columnLabel the column label
* @return a Date object representing the column value
* @see java.sql.ResultSet#getDate(String)
@@ -142,8 +133,7 @@ public interface SqlRowSet extends Serializable {
Date getDate(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Date object.
+ * Retrieve the value of the indicated column in the current row as a Date object.
* @param columnIndex the column index
* @param cal the Calendar to use in constructing the Date
* @return a Date object representing the column value
@@ -152,8 +142,7 @@ public interface SqlRowSet extends Serializable {
Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Date object.
+ * Retrieve the value of the indicated column in the current row as a Date object.
* @param columnLabel the column label
* @param cal the Calendar to use in constructing the Date
* @return a Date object representing the column value
@@ -162,8 +151,7 @@ public interface SqlRowSet extends Serializable {
Date getDate(String columnLabel, Calendar cal) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Double object.
+ * Retrieve the value of the indicated column in the current row as a Double object.
* @param columnIndex the column index
* @return a Double object representing the column value
* @see java.sql.ResultSet#getDouble(int)
@@ -171,8 +159,7 @@ public interface SqlRowSet extends Serializable {
double getDouble(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a Double object.
+ * Retrieve the value of the indicated column in the current row as a Double object.
* @param columnLabel the column label
* @return a Double object representing the column value
* @see java.sql.ResultSet#getDouble(String)
@@ -180,8 +167,7 @@ public interface SqlRowSet extends Serializable {
double getDouble(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a float.
+ * Retrieve the value of the indicated column in the current row as a float.
* @param columnIndex the column index
* @return a float representing the column value
* @see java.sql.ResultSet#getFloat(int)
@@ -189,8 +175,7 @@ public interface SqlRowSet extends Serializable {
float getFloat(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a float.
+ * Retrieve the value of the indicated column in the current row as a float.
* @param columnLabel the column label
* @return a float representing the column value
* @see java.sql.ResultSet#getFloat(String)
@@ -198,8 +183,7 @@ public interface SqlRowSet extends Serializable {
float getFloat(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as an int.
+ * Retrieve the value of the indicated column in the current row as an int.
* @param columnIndex the column index
* @return an int representing the column value
* @see java.sql.ResultSet#getInt(int)
@@ -207,8 +191,7 @@ public interface SqlRowSet extends Serializable {
int getInt(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as an int.
+ * Retrieve the value of the indicated column in the current row as an int.
* @param columnLabel the column label
* @return an int representing the column value
* @see java.sql.ResultSet#getInt(String)
@@ -216,8 +199,7 @@ public interface SqlRowSet extends Serializable {
int getInt(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a long.
+ * Retrieve the value of the indicated column in the current row as a long.
* @param columnIndex the column index
* @return a long representing the column value
* @see java.sql.ResultSet#getLong(int)
@@ -225,8 +207,7 @@ public interface SqlRowSet extends Serializable {
long getLong(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a long.
+ * Retrieve the value of the indicated column in the current row as a long.
* @param columnLabel the column label
* @return a long representing the column value
* @see java.sql.ResultSet#getLong(String)
@@ -234,8 +215,8 @@ public interface SqlRowSet extends Serializable {
long getLong(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
+ * Retrieve the value of the indicated column in the current row as a String
+ * (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
* @param columnIndex the column index
* @return a String representing the column value
* @see java.sql.ResultSet#getNString(int)
@@ -244,8 +225,8 @@ public interface SqlRowSet extends Serializable {
String getNString(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
+ * Retrieve the value of the indicated column in the current row as a String
+ * (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
* @param columnLabel the column label
* @return a String representing the column value
* @see java.sql.ResultSet#getNString(String)
@@ -254,8 +235,7 @@ public interface SqlRowSet extends Serializable {
String getNString(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as an Object.
+ * Retrieve the value of the indicated column in the current row as an Object.
* @param columnIndex the column index
* @return a Object representing the column value
* @see java.sql.ResultSet#getObject(int)
@@ -263,8 +243,7 @@ public interface SqlRowSet extends Serializable {
Object getObject(int columnIndex) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as an Object.
+ * Retrieve the value of the indicated column in the current row as an Object.
* @param columnLabel the column label
* @return a Object representing the column value
* @see java.sql.ResultSet#getObject(String)
@@ -272,8 +251,7 @@ public interface SqlRowSet extends Serializable {
Object getObject(String columnLabel) throws InvalidResultSetAccessException;
/**
- * Retrieve the value of the indicated column in the current row
- * as an Object.
+ * Retrieve the value of the indicated column in the current row as an Object.
* @param columnIndex the column index
* @param map a Map object containing the mapping from SQL types to Java types
* @return a Object representing the column value
@@ -282,8 +260,7 @@ public interface SqlRowSet extends Serializable {
Object getObject(int columnIndex, Map Note that you must first call one of the getter methods
- * and then call the {@code wasNull()} method.
- * @return {@code true} if the most recent coumn retrieved was
+ * Note that you must first call one of the getter methods and then
+ * call the {@code wasNull()} method.
+ * @return {@code true} if the most recent column retrieved was
* SQL {@code NULL}, {@code false} otherwise
* @see java.sql.ResultSet#wasNull()
*/