Polishing.
Added Javadoc, removed superfluous code. Original pull request #980
This commit is contained in:
@@ -125,8 +125,8 @@ public abstract class AbstractJdbcQuery implements RepositoryQuery {
|
||||
/**
|
||||
* 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) {
|
||||
|
||||
|
||||
@@ -74,14 +74,14 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
|
||||
* 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<ParametrizedQuery> {
|
||||
* 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 RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) {
|
||||
@@ -345,18 +345,6 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
Table getJoinTable() {
|
||||
return this.joinTable;
|
||||
}
|
||||
|
||||
Column getJoinColumn() {
|
||||
return this.joinColumn;
|
||||
}
|
||||
|
||||
Column getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user