diff --git a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/AbstractJdbcQuery.java b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/AbstractJdbcQuery.java index cdbcf9c3f9..a4fea0d222 100644 --- a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/AbstractJdbcQuery.java +++ b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/AbstractJdbcQuery.java @@ -125,8 +125,8 @@ JdbcQueryExecution> collectionQuery(RowMapper rowMapper) { /** * Obtain the result type to read from {@link ResultProcessor}. * - * @param resultProcessor - * @return + * @param resultProcessor the {@link ResultProcessor} used to determine the result type. Must not be {@literal null}. + * @return the type that should get loaded from the database before it gets converted into the actual return type of a method. Guaranteed to be not {@literal null}. */ protected Class resolveTypeToRead(ResultProcessor resultProcessor) { diff --git a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java index d28b604f6e..5f6105a174 100644 --- a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java +++ b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java @@ -74,14 +74,14 @@ class JdbcQueryCreator extends RelationalQueryCreator { * Creates new instance of this class with the given {@link PartTree}, {@link JdbcConverter}, {@link Dialect}, * {@link RelationalEntityMetadata} and {@link RelationalParameterAccessor}. * - * @param context + * @param context the mapping context. Must not be {@literal null}. * @param tree part tree, must not be {@literal null}. * @param converter must not be {@literal null}. * @param dialect must not be {@literal null}. * @param entityMetadata relational entity metadata, must not be {@literal null}. * @param accessor parameter metadata provider, must not be {@literal null}. - * @param isSliceQuery - * @param returnedType + * @param isSliceQuery flag denoting if the query returns a {@link org.springframework.data.domain.Slice}. + * @param returnedType the {@link ReturnedType} to be returned by the query. Must not be {@literal null}. */ JdbcQueryCreator(RelationalMappingContext context, PartTree tree, JdbcConverter converter, Dialect dialect, RelationalEntityMetadata entityMetadata, RelationalParameterAccessor accessor, boolean isSliceQuery, @@ -108,8 +108,8 @@ class JdbcQueryCreator extends RelationalQueryCreator { * Validate parameters for the derived query. Specifically checking that the query method defines scalar parameters * and collection parameters where required and that invalid parameter declarations are rejected. * - * @param tree - * @param parameters + * @param tree the tree structure defining the predicate of the query. + * @param parameters parameters for the predicate. */ static void validate(PartTree tree, Parameters parameters, MappingContext, ? extends RelationalPersistentProperty> context) { @@ -345,18 +345,6 @@ static private final class Join { this.parentId = parentId; } - Table getJoinTable() { - return this.joinTable; - } - - Column getJoinColumn() { - return this.joinColumn; - } - - Column getParentId() { - return this.parentId; - } - @Override public boolean equals(Object o) {