Browse Source

Polishing Javadoc (#32313)

pull/32316/head
cboy 2 years ago committed by GitHub
parent
commit
00edba07ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/IncorrectResultSetColumnCountException.java
  2. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/JdbcUpdateAffectedIncorrectNumberOfRowsException.java
  3. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/core/InterruptibleBatchPreparedStatementSetter.java
  4. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java
  5. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/object/StoredProcedure.java
  6. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/support/CustomSQLExceptionTranslatorRegistry.java
  7. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
  8. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java

2
spring-jdbc/src/main/java/org/springframework/jdbc/IncorrectResultSetColumnCountException.java

@ -20,7 +20,7 @@ import org.springframework.dao.DataRetrievalFailureException; @@ -20,7 +20,7 @@ import org.springframework.dao.DataRetrievalFailureException;
/**
* Data access exception thrown when a result set did not have the correct column count,
* for example when expecting a single column but getting 0 or more than 1 columns.
* for example when expecting a single column but getting 0 or more than 1 column.
*
* @author Juergen Hoeller
* @since 2.0

2
spring-jdbc/src/main/java/org/springframework/jdbc/JdbcUpdateAffectedIncorrectNumberOfRowsException.java

@ -20,7 +20,7 @@ import org.springframework.dao.IncorrectUpdateSemanticsDataAccessException; @@ -20,7 +20,7 @@ import org.springframework.dao.IncorrectUpdateSemanticsDataAccessException;
/**
* Exception thrown when a JDBC update affects an unexpected number of rows.
* Typically we expect an update to affect a single row, meaning it's an
* Typically, we expect an update to affect a single row, meaning it's an
* error if it affects multiple rows.
*
* @author Rod Johnson

2
spring-jdbc/src/main/java/org/springframework/jdbc/core/InterruptibleBatchPreparedStatementSetter.java

@ -22,7 +22,7 @@ package org.springframework.jdbc.core; @@ -22,7 +22,7 @@ package org.springframework.jdbc.core;
*
* <p>This interface allows you to signal the end of a batch rather than
* having to determine the exact batch size upfront. Batch size is still
* being honored but it is now the maximum size of the batch.
* being honored, but it is now the maximum size of the batch.
*
* <p>The {@link #isBatchExhausted} method is called after each call to
* {@link #setValues} to determine whether there were some values added,

2
spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java

@ -175,7 +175,7 @@ public abstract class RdbmsOperation implements InitializingBean { @@ -175,7 +175,7 @@ public abstract class RdbmsOperation implements InitializingBean {
public void setUpdatableResults(boolean updatableResults) {
if (isCompiled()) {
throw new InvalidDataAccessApiUsageException(
"The updateableResults flag must be set before the operation is compiled");
"The updatableResults flag must be set before the operation is compiled");
}
this.updatableResults = updatableResults;
}

2
spring-jdbc/src/main/java/org/springframework/jdbc/object/StoredProcedure.java

@ -29,7 +29,7 @@ import org.springframework.jdbc.core.SqlParameter; @@ -29,7 +29,7 @@ import org.springframework.jdbc.core.SqlParameter;
/**
* Superclass for object abstractions of RDBMS stored procedures.
* This class is abstract and it is intended that subclasses will provide a typed
* This class is abstract, and it is intended that subclasses will provide a typed
* method for invocation that delegates to the supplied {@link #execute} method.
*
* <p>The inherited {@link #setSql sql} property is the name of the stored procedure

2
spring-jdbc/src/main/java/org/springframework/jdbc/support/CustomSQLExceptionTranslatorRegistry.java

@ -38,7 +38,7 @@ public final class CustomSQLExceptionTranslatorRegistry { @@ -38,7 +38,7 @@ public final class CustomSQLExceptionTranslatorRegistry {
private static final Log logger = LogFactory.getLog(CustomSQLExceptionTranslatorRegistry.class);
/**
* Keep track of a single instance so we can return it to classes that request it.
* Keep track of a single instance, so we can return it to classes that request it.
*/
private static final CustomSQLExceptionTranslatorRegistry instance = new CustomSQLExceptionTranslatorRegistry();

2
spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java

@ -219,7 +219,7 @@ public abstract class JdbcUtils { @@ -219,7 +219,7 @@ public abstract class JdbcUtils {
return NumberUtils.convertNumberToTargetClass(number, Integer.class);
}
else {
// e.g. on Postgres: getObject returns a PGObject but we need a String
// e.g. on Postgres: getObject returns a PGObject, but we need a String
return rs.getString(index);
}
}

2
spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodesFactory.java

@ -67,7 +67,7 @@ public class SQLErrorCodesFactory { @@ -67,7 +67,7 @@ public class SQLErrorCodesFactory {
private static final Log logger = LogFactory.getLog(SQLErrorCodesFactory.class);
/**
* Keep track of a single instance so we can return it to classes that request it.
* Keep track of a single instance, so we can return it to classes that request it.
* Lazily initialized in order to avoid making {@code SQLErrorCodesFactory} constructor
* reachable on native images when not needed.
*/

Loading…
Cancel
Save