Skip to content

Commit 261d5eb

Browse files
committed
Polishing.
Added Javadoc, removed superfluous code. Original pull request #980
1 parent b99b4aa commit 261d5eb

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/AbstractJdbcQuery.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ <T> JdbcQueryExecution<List<T>> collectionQuery(RowMapper<T> rowMapper) {
125125
/**
126126
* Obtain the result type to read from {@link ResultProcessor}.
127127
*
128-
* @param resultProcessor
129-
* @return
128+
* @param resultProcessor the {@link ResultProcessor} used to determine the result type. Must not be {@literal null}.
129+
* @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}.
130130
*/
131131
protected Class<?> resolveTypeToRead(ResultProcessor resultProcessor) {
132132

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java

+5-17
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
7474
* Creates new instance of this class with the given {@link PartTree}, {@link JdbcConverter}, {@link Dialect},
7575
* {@link RelationalEntityMetadata} and {@link RelationalParameterAccessor}.
7676
*
77-
* @param context
77+
* @param context the mapping context. Must not be {@literal null}.
7878
* @param tree part tree, must not be {@literal null}.
7979
* @param converter must not be {@literal null}.
8080
* @param dialect must not be {@literal null}.
8181
* @param entityMetadata relational entity metadata, must not be {@literal null}.
8282
* @param accessor parameter metadata provider, must not be {@literal null}.
83-
* @param isSliceQuery
84-
* @param returnedType
83+
* @param isSliceQuery flag denoting if the query returns a {@link org.springframework.data.domain.Slice}.
84+
* @param returnedType the {@link ReturnedType} to be returned by the query. Must not be {@literal null}.
8585
*/
8686
JdbcQueryCreator(RelationalMappingContext context, PartTree tree, JdbcConverter converter, Dialect dialect,
8787
RelationalEntityMetadata<?> entityMetadata, RelationalParameterAccessor accessor, boolean isSliceQuery,
@@ -108,8 +108,8 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
108108
* Validate parameters for the derived query. Specifically checking that the query method defines scalar parameters
109109
* and collection parameters where required and that invalid parameter declarations are rejected.
110110
*
111-
* @param tree
112-
* @param parameters
111+
* @param tree the tree structure defining the predicate of the query.
112+
* @param parameters parameters for the predicate.
113113
*/
114114
static void validate(PartTree tree, Parameters<?, ?> parameters,
115115
MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) {
@@ -345,18 +345,6 @@ static private final class Join {
345345
this.parentId = parentId;
346346
}
347347

348-
Table getJoinTable() {
349-
return this.joinTable;
350-
}
351-
352-
Column getJoinColumn() {
353-
return this.joinColumn;
354-
}
355-
356-
Column getParentId() {
357-
return this.parentId;
358-
}
359-
360348
@Override
361349
public boolean equals(Object o) {
362350

0 commit comments

Comments
 (0)