Browse Source

Fix a/an in Javadoc

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
pull/2216/head
Tran Ngoc Nhan 3 weeks ago
parent
commit
e4a7d04bef
  1. 2
      spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/FunctionCollector.java
  2. 4
      spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/ReactiveSelectOperation.java
  3. 4
      spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/StatementMapper.java
  4. 4
      spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/DbAction.java
  5. 2
      spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/Comparison.java
  6. 2
      spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/InlineQuery.java
  7. 2
      spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/NamingStrategies.java
  8. 4
      src/main/antora/modules/ROOT/pages/jdbc/events.adoc

2
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/FunctionCollector.java

@ -92,7 +92,7 @@ class FunctionCollector<T> implements Collector<DataAccessStrategy, FunctionColl @@ -92,7 +92,7 @@ class FunctionCollector<T> implements Collector<DataAccessStrategy, FunctionColl
/**
* Stores intermediate results. I.e. a list of exceptions caught so far, any actual result and the fact, if there
* actually is an result.
* actually is a result.
*/
static class ResultOrException<T> {

4
spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/ReactiveSelectOperation.java

@ -27,7 +27,7 @@ import org.springframework.data.relational.core.sql.SqlIdentifier; @@ -27,7 +27,7 @@ import org.springframework.data.relational.core.sql.SqlIdentifier;
* <p>
* The starting {@literal domainType} is used for mapping the {@link Query} provided via {@code matching}. By default,
* the originating {@literal domainType} is also used for mapping back the result from the {@link io.r2dbc.spi.Row}.
* However, it is possible to define an different {@literal returnType} via {@code as} to mapping the result.
* However, it is possible to define a different {@literal returnType} via {@code as} to mapping the result.
* <p>
* By default, the table to operate on is derived from the initial {@literal domainType} and can be defined there via
* the {@link org.springframework.data.relational.core.mapping.Table} annotation. Using {@code inTable} allows to
@ -120,7 +120,7 @@ public interface ReactiveSelectOperation { @@ -120,7 +120,7 @@ public interface ReactiveSelectOperation {
/**
* Specifies the fetch size for this query.
*
* @param fetchSize
* @param fetchSize the fetch size
* @return new instance of {@link SelectWithQuery}.
* @since 3.4
* @see io.r2dbc.spi.Statement#fetchSize(int)

4
spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/StatementMapper.java

@ -92,7 +92,7 @@ public interface StatementMapper { @@ -92,7 +92,7 @@ public interface StatementMapper {
PreparedOperation<?> getMappedObject(SelectSpec selectSpec);
/**
* Map a insert specification to a {@link PreparedOperation}.
* Map an insert specification to a {@link PreparedOperation}.
*
* @param insertSpec the insert operation definition, must not be {@literal null}.
* @return the {@link PreparedOperation} for {@link InsertSpec}.
@ -100,7 +100,7 @@ public interface StatementMapper { @@ -100,7 +100,7 @@ public interface StatementMapper {
PreparedOperation<?> getMappedObject(InsertSpec insertSpec);
/**
* Map a update specification to a {@link PreparedOperation}.
* Map an update specification to a {@link PreparedOperation}.
*
* @param updateSpec the update operation definition, must not be {@literal null}.
* @return the {@link PreparedOperation} for {@link UpdateSpec}.

4
spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/DbAction.java

@ -169,7 +169,7 @@ public interface DbAction<T> { @@ -169,7 +169,7 @@ public interface DbAction<T> {
}
/**
* Represents a delete statement for a aggregate root when only the ID is known.
* Represents a delete statement for an aggregate root when only the ID is known.
* <p>
* Note that deletes for contained entities that reference the root are to be represented by separate
* {@link DbAction}s.
@ -220,7 +220,7 @@ public interface DbAction<T> { @@ -220,7 +220,7 @@ public interface DbAction<T> {
}
/**
* Represents an acquire lock statement for a aggregate root when only the ID is known.
* Represents an acquire lock statement for an aggregate root when only the ID is known.
*
* @param <T> type of the entity for which this represents a database interaction.
*/

2
spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/Comparison.java

@ -64,7 +64,7 @@ public class Comparison extends AbstractSegment implements Condition { @@ -64,7 +64,7 @@ public class Comparison extends AbstractSegment implements Condition {
* Creates a new {@link Comparison} from simple {@literal StringP} arguments
*
* @param unqualifiedColumnName gets turned in a {@link Expressions#just(String)} and is expected to be an unqualified
* unique column name but also could be an verbatim expression. Must not be {@literal null}.
* unique column name but also could be a verbatim expression. Must not be {@literal null}.
* @param comparator must not be {@literal null}.
* @param rightValue is considered a {@link Literal}. Must not be {@literal null}.
* @return a new {@literal Comparison} of the first with the third argument using the second argument as comparison

2
spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/InlineQuery.java

@ -18,7 +18,7 @@ package org.springframework.data.relational.core.sql; @@ -18,7 +18,7 @@ package org.springframework.data.relational.core.sql;
import org.springframework.util.Assert;
/**
* Represents a inline query within a SQL statement. Typically, used in {@code FROM} or {@code JOIN} clauses.
* Represents an inline query within a SQL statement. Typically, used in {@code FROM} or {@code JOIN} clauses.
* <p>
* Renders to: {@code (&gt;SELECT&lt;) AS &gt;ALIAS&lt;} in a from or join clause, and to {@code &gt;ALIAS&lt;} when
* used in an expression.

2
spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/NamingStrategies.java

@ -35,7 +35,7 @@ public abstract class NamingStrategies { @@ -35,7 +35,7 @@ public abstract class NamingStrategies {
private NamingStrategies() {}
/**
* Creates a as-is {@link RenderNamingStrategy} that preserves {@link Column} and {@link Table} names as they were
* Creates an as-is {@link RenderNamingStrategy} that preserves {@link Column} and {@link Table} names as they were
* expressed during their declaration.
*
* @return as-is {@link RenderNamingStrategy}.

4
src/main/antora/modules/ROOT/pages/jdbc/events.adoc

@ -88,9 +88,9 @@ Spring Data JDBC uses the xref:commons/entity-callbacks.adoc[`EntityCallback` AP @@ -88,9 +88,9 @@ Spring Data JDBC uses the xref:commons/entity-callbacks.adoc[`EntityCallback` AP
.6+| Save 2+| Determine if an insert or an update of the aggregate is to be performed dependent on if it is new or not.
| javadoc:org.springframework.data.relational.core.mapping.event.BeforeConvertCallback[]
| This is the correct callback if you want to set an id programmatically. In the previous step new aggregates got detected as such and a Id generated in this step would be used in the following step.
| This is the correct callback if you want to set an id programmatically. In the previous step new aggregates got detected as such and an Id generated in this step would be used in the following step.
2+| Convert the aggregate to a aggregate change, it is a sequence of SQL statements to be executed against the database. In this step the decision is made if an Id is provided by the aggregate or if the Id is still empty and is expected to be generated by the database.
2+| Convert the aggregate to an aggregate change, it is a sequence of SQL statements to be executed against the database. In this step the decision is made if an Id is provided by the aggregate or if the Id is still empty and is expected to be generated by the database.
| javadoc:org.springframework.data.relational.core.mapping.event.BeforeSaveCallback[]
| Changes made to the aggregate root may get considered, but the decision if an id value will be sent to the database is already made in the previous step.

Loading…
Cancel
Save