Polishing Javadoc (#32313)
This commit is contained in:
parent
aee03c5201
commit
00edba07ff
|
|
@ -20,7 +20,7 @@ import org.springframework.dao.DataRetrievalFailureException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data access exception thrown when a result set did not have the correct column count,
|
* 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
|
* @author Juergen Hoeller
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import org.springframework.dao.IncorrectUpdateSemanticsDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception thrown when a JDBC update affects an unexpected number of rows.
|
* 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.
|
* error if it affects multiple rows.
|
||||||
*
|
*
|
||||||
* @author Rod Johnson
|
* @author Rod Johnson
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ package org.springframework.jdbc.core;
|
||||||
*
|
*
|
||||||
* <p>This interface allows you to signal the end of a batch rather than
|
* <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
|
* 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
|
* <p>The {@link #isBatchExhausted} method is called after each call to
|
||||||
* {@link #setValues} to determine whether there were some values added,
|
* {@link #setValues} to determine whether there were some values added,
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ public abstract class RdbmsOperation implements InitializingBean {
|
||||||
public void setUpdatableResults(boolean updatableResults) {
|
public void setUpdatableResults(boolean updatableResults) {
|
||||||
if (isCompiled()) {
|
if (isCompiled()) {
|
||||||
throw new InvalidDataAccessApiUsageException(
|
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;
|
this.updatableResults = updatableResults;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import org.springframework.jdbc.core.SqlParameter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Superclass for object abstractions of RDBMS stored procedures.
|
* 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.
|
* 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
|
* <p>The inherited {@link #setSql sql} property is the name of the stored procedure
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ public final class CustomSQLExceptionTranslatorRegistry {
|
||||||
private static final Log logger = LogFactory.getLog(CustomSQLExceptionTranslatorRegistry.class);
|
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();
|
private static final CustomSQLExceptionTranslatorRegistry instance = new CustomSQLExceptionTranslatorRegistry();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ public abstract class JdbcUtils {
|
||||||
return NumberUtils.convertNumberToTargetClass(number, Integer.class);
|
return NumberUtils.convertNumberToTargetClass(number, Integer.class);
|
||||||
}
|
}
|
||||||
else {
|
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);
|
return rs.getString(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ public class SQLErrorCodesFactory {
|
||||||
private static final Log logger = LogFactory.getLog(SQLErrorCodesFactory.class);
|
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
|
* Lazily initialized in order to avoid making {@code SQLErrorCodesFactory} constructor
|
||||||
* reachable on native images when not needed.
|
* reachable on native images when not needed.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue