DATAMONGO-1860 - Polishing.
Fix type references in Javadoc. Change lambdas to method references where applicable. Original Pull Request: #529
This commit is contained in:
committed by
Christoph Strobl
parent
38575baec1
commit
78212948bc
@@ -59,7 +59,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation} and
|
* 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.
|
* domain class.
|
||||||
*
|
*
|
||||||
* @param entityInformation must not be {@literal null}.
|
* @param entityInformation must not be {@literal null}.
|
||||||
@@ -72,7 +72,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation},
|
* 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 entityInformation must not be {@literal null}.
|
||||||
* @param mongoOperations must not be {@literal null}.
|
* @param mongoOperations must not be {@literal null}.
|
||||||
@@ -108,7 +108,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public List<T> findAll(Predicate predicate) {
|
public List<T> findAll(Predicate predicate) {
|
||||||
@@ -120,7 +120,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public List<T> findAll(Predicate predicate, OrderSpecifier<?>... orders) {
|
public List<T> findAll(Predicate predicate, OrderSpecifier<?>... orders) {
|
||||||
@@ -133,7 +133,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public List<T> findAll(Predicate predicate, Sort sort) {
|
public List<T> findAll(Predicate predicate, Sort sort) {
|
||||||
@@ -146,7 +146,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public Iterable<T> findAll(OrderSpecifier<?>... orders) {
|
public Iterable<T> findAll(OrderSpecifier<?>... orders) {
|
||||||
@@ -158,7 +158,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public Page<T> findAll(Predicate predicate, Pageable pageable) {
|
public Page<T> findAll(Predicate predicate, Pageable pageable) {
|
||||||
@@ -173,7 +173,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public long count(Predicate predicate) {
|
public long count(Predicate predicate) {
|
||||||
@@ -185,7 +185,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (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
|
@Override
|
||||||
public boolean exists(Predicate predicate) {
|
public boolean exists(Predicate predicate) {
|
||||||
@@ -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
|
* @param predicate
|
||||||
* @return
|
* @return
|
||||||
@@ -206,12 +206,12 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a {@link MongodbQuery}.
|
* Creates a {@link AbstractMongodbQuery}.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private AbstractMongodbQuery<T, SpringDataMongodbQuery<T>> createQuery() {
|
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
|
|||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.stream().map(this::toOrder).forEach(it -> query.orderBy(it));
|
sort.stream().map(this::toOrder).forEach(query::orderBy);
|
||||||
|
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user