Browse Source

DATAMONGO-1860 - Polishing.

Fix type references in Javadoc. Change lambdas to method references where applicable.

Original Pull Request: #529
pull/534/head
Mark Paluch 8 years ago committed by Christoph Strobl
parent
commit
4bba7b4406
  1. 26
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/QuerydslMongoPredicateExecutor.java

26
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/QuerydslMongoPredicateExecutor.java

@ -59,7 +59,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -59,7 +59,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/**
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation} and
* {@link MongoTemplate}. Uses the {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the given
* {@link MongoOperations}. Uses the {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the given
* domain class.
*
* @param entityInformation must not be {@literal null}.
@ -72,7 +72,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -72,7 +72,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/**
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation},
* {@link MongoTemplate} and {@link EntityPathResolver}.
* {@link MongoOperations} and {@link EntityPathResolver}.
*
* @param entityInformation must not be {@literal null}.
* @param mongoOperations must not be {@literal null}.
@ -108,7 +108,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -108,7 +108,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate)
*/
@Override
public List<T> findAll(Predicate predicate) {
@ -120,7 +120,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -120,7 +120,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, com.mysema.query.types.OrderSpecifier<?>[])
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, com.querydsl.core.types.OrderSpecifier<?>[])
*/
@Override
public List<T> findAll(Predicate predicate, OrderSpecifier<?>... orders) {
@ -133,7 +133,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -133,7 +133,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, org.springframework.data.domain.Sort)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, org.springframework.data.domain.Sort)
*/
@Override
public List<T> findAll(Predicate predicate, Sort sort) {
@ -146,7 +146,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -146,7 +146,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.OrderSpecifier[])
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.OrderSpecifier[])
*/
@Override
public Iterable<T> findAll(OrderSpecifier<?>... orders) {
@ -158,7 +158,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -158,7 +158,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, org.springframework.data.domain.Pageable)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, org.springframework.data.domain.Pageable)
*/
@Override
public Page<T> findAll(Predicate predicate, Pageable pageable) {
@ -173,7 +173,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -173,7 +173,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#count(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#count(com.querydsl.core.types.Predicate)
*/
@Override
public long count(Predicate predicate) {
@ -185,7 +185,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -185,7 +185,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#exists(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#exists(com.querydsl.core.types.Predicate)
*/
@Override
public boolean exists(Predicate predicate) {
@ -196,7 +196,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -196,7 +196,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
}
/**
* Creates a {@link MongodbQuery} for the given {@link Predicate}.
* Creates a {@link AbstractMongodbQuery} for the given {@link Predicate}.
*
* @param predicate
* @return
@ -206,12 +206,12 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -206,12 +206,12 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
}
/**
* Creates a {@link MongodbQuery}.
* Creates a {@link AbstractMongodbQuery}.
*
* @return
*/
private AbstractMongodbQuery<T, SpringDataMongodbQuery<T>> createQuery() {
return new SpringDataMongodbQuery<T>(mongoOperations, entityInformation.getJavaType());
return new SpringDataMongodbQuery<>(mongoOperations, entityInformation.getJavaType());
}
/**
@ -247,7 +247,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu @@ -247,7 +247,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
return query;
}
sort.stream().map(this::toOrder).forEach(it -> query.orderBy(it));
sort.stream().map(this::toOrder).forEach(query::orderBy);
return query;
}

Loading…
Cancel
Save