DATACMNS-1240 - Update copyright years to 2018.

Also, remove some trailing whitespaces and align outdated license header format.
This commit is contained in:
Mark Paluch
2018-01-01 08:59:42 +01:00
parent eb2163a29e
commit 51e7e1b7f5
632 changed files with 2269 additions and 2278 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2015 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import com.querydsl.core.types.EntityPath;
/**
* Strategy interface to abstract the ways to translate an plain domain class into a {@link EntityPath}.
*
*
* @author Oliver Gierke
*/
public interface EntityPathResolver {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2015 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import com.querydsl.core.types.OrderSpecifier;
/**
* Basic Java Bean implementation of {@link Pageable} with support for QueryDSL.
*
*
* @author Thomas Darimont
*/
public class QPageRequest extends AbstractPageRequest {
@@ -35,7 +35,7 @@ public class QPageRequest extends AbstractPageRequest {
/**
* Creates a new {@link QPageRequest}. Pages are zero indexed, thus providing 0 for {@code page} will return the first
* page.
*
*
* @param page
* @param size
*/
@@ -45,7 +45,7 @@ public class QPageRequest extends AbstractPageRequest {
/**
* Creates a new {@link QPageRequest} with the given {@link OrderSpecifier}s applied.
*
*
* @param page
* @param size
* @param orderSpecifiers must not be {@literal null} or empty;
@@ -56,7 +56,7 @@ public class QPageRequest extends AbstractPageRequest {
/**
* Creates a new {@link QPageRequest} with sort parameters applied.
*
*
* @param page
* @param size
* @param sort
@@ -67,7 +67,7 @@ public class QPageRequest extends AbstractPageRequest {
this.sort = sort;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.domain.Pageable#getSort()
*/
@@ -76,7 +76,7 @@ public class QPageRequest extends AbstractPageRequest {
return sort;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.domain.AbstractPageRequest#next()
*/
@@ -85,7 +85,7 @@ public class QPageRequest extends AbstractPageRequest {
return new QPageRequest(getPageNumber() + 1, getPageSize(), sort);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.domain.AbstractPageRequest#previous()
*/
@@ -94,7 +94,7 @@ public class QPageRequest extends AbstractPageRequest {
return new QPageRequest(getPageNumber() - 1, getPageSize(), sort);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.domain.AbstractPageRequest#first()
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import com.querydsl.core.types.Path;
/**
* Sort option for queries that wraps a Querydsl {@link OrderSpecifier}.
*
*
* @author Thomas Darimont
* @author Christoph Strobl
* @author Mark Paluch
@@ -44,7 +44,7 @@ public class QSort extends Sort implements Serializable {
/**
* Creates a new {@link QSort} instance with the given {@link OrderSpecifier}s.
*
*
* @param orderSpecifiers must not be {@literal null} .
*/
public QSort(OrderSpecifier<?>... orderSpecifiers) {
@@ -53,7 +53,7 @@ public class QSort extends Sort implements Serializable {
/**
* Creates a new {@link QSort} instance with the given {@link OrderSpecifier}s.
*
*
* @param orderSpecifiers must not be {@literal null}.
*/
@SuppressWarnings("deprecation")
@@ -74,7 +74,7 @@ public class QSort extends Sort implements Serializable {
/**
* Converts the given {@link OrderSpecifier}s into a list of {@link Order}s.
*
*
* @param orderSpecifiers must not be {@literal null} or empty.
* @return
*/
@@ -87,7 +87,7 @@ public class QSort extends Sort implements Serializable {
/**
* Converts the given {@link OrderSpecifier} into an {@link Order}.
*
*
* @param orderSpecifier must not be {@literal null}.
* @return
*/
@@ -114,7 +114,7 @@ public class QSort extends Sort implements Serializable {
/**
* Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@code QSort} combined with
* the ones from the given {@code QSort}.
*
*
* @param sort can be {@literal null}.
* @return
*/
@@ -125,7 +125,7 @@ public class QSort extends Sort implements Serializable {
/**
* Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@link QSort} combined with
* the given ones.
*
*
* @param orderSpecifiers must not be {@literal null} or empty.
* @return
*/
@@ -142,7 +142,7 @@ public class QSort extends Sort implements Serializable {
/**
* Returns a new {@link QSort} consisting of the {@link OrderSpecifier}s of the current {@link QSort} combined with
* the given ones.
*
*
* @param orderSpecifiers must not be {@literal null} or empty.
* @return
*/
@@ -154,7 +154,7 @@ public class QSort extends Sort implements Serializable {
/**
* Recursively creates a dot-separated path for the property path.
*
*
* @param path must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2017 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ import com.querydsl.core.types.Predicate;
/**
* {@link RepositoryInvoker} that is aware of a {@link QuerydslPredicateExecutor} and {@link Predicate} to be executed
* for all flavors of {@code findAll(…)}. All other calls are forwarded to the configured delegate.
*
*
* @author Oliver Gierke
*/
public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
@@ -41,7 +41,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
/**
* Creates a new {@link QuerydslRepositoryInvokerAdapter} for the given delegate {@link RepositoryInvoker},
* {@link QuerydslPredicateExecutor} and Querydsl {@link Predicate}.
*
*
* @param delegate must not be {@literal null}.
* @param executor must not be {@literal null}.
* @param predicate can be {@literal null}.
@@ -75,7 +75,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
return executor.findAll(predicate, sort);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasDeleteMethod()
*/
@@ -84,7 +84,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
return delegate.hasDeleteMethod();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindAllMethod()
*/
@@ -93,7 +93,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
return delegate.hasFindAllMethod();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasFindOneMethod()
*/
@@ -102,7 +102,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
return delegate.hasFindOneMethod();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryInvocationInformation#hasSaveMethod()
*/
@@ -139,7 +139,7 @@ public class QuerydslRepositoryInvokerAdapter implements RepositoryInvoker {
return delegate.invokeQueryMethod(method, parameters, pageable, sort);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryInvoker#invokeSave(java.lang.Object)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2016 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import com.querydsl.core.types.PathType;
/**
* Utility class for Querydsl.
*
*
* @author Oliver Gierke
*/
@UtilityClass
@@ -37,7 +37,7 @@ public class QuerydslUtils {
/**
* Returns the property path for the given {@link Path}.
*
*
* @param path can be {@literal null}.
* @return
*/
@@ -48,7 +48,7 @@ public class QuerydslUtils {
/**
* Recursively builds up the dot path for the given {@link Path} instance by walking up the individual segments until
* the root.
*
*
* @param path can be {@literal null}.
* @param tail must not be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2015 the original author or authors.
* Copyright 2011-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import com.querydsl.core.types.EntityPath;
/**
* Simple implementation of {@link EntityPathResolver} to lookup a query class by reflection and using the static field
* of the same type.
*
*
* @author Oliver Gierke
*/
public enum SimpleEntityPathResolver implements EntityPathResolver {
@@ -41,7 +41,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver {
* Creates an {@link EntityPath} instance for the given domain class. Tries to lookup a class matching the naming
* convention (prepend Q to the simple name of the class, same package) and find a static field of the same type in
* it.
*
*
* @param domainClass
* @return
*/
@@ -66,7 +66,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver {
/**
* Returns the first static field of the given type inside the given type.
*
*
* @param type
* @return
*/
@@ -88,7 +88,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver {
/**
* Returns the name of the query class for the given domain class.
*
*
* @param domainClass
* @return
*/
@@ -101,7 +101,7 @@ public enum SimpleEntityPathResolver implements EntityPathResolver {
/**
* Analyzes the short class name and potentially returns the outer class.
*
*
* @param shortName
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import com.querydsl.core.types.Predicate;
/**
* {@link MultiValueBinding} creates a {@link Predicate} out of given {@link Path} and collection value. Used for
* specific parameter treatment in {@link QuerydslBindings}.
*
*
* @author Oliver Gierke
* @since 1.11
*/
@@ -35,7 +35,7 @@ public interface MultiValueBinding<T extends Path<? extends S>, S> {
* Returns the predicate to be applied to the given {@link Path} for the given collection value, which will contain
* all values submitted for the path bind. If a single value was provided only the collection will consist of exactly
* one element.
*
*
* @param path {@link Path} to the property. Will not be {@literal null}.
* @param value the value that should be bound. Will not be {@literal null} or empty.
* @return can be {@literal null}, in which case the binding will not be incorporated in the overall

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import com.querydsl.core.types.Predicate;
/**
* {@link OptionalValueBinding} creates a {@link Predicate} out of given {@link Path} and value. Used for specific
* parameter treatment in {@link QuerydslBindings}.
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11
@@ -34,7 +34,7 @@ public interface OptionalValueBinding<T extends Path<? extends S>, S> {
/**
* Returns the predicate to be applied to the given {@link Path} for the given value. The given value will be the
* first the first one provided for the given path and converted into the expected type.
*
*
* @param path {@link Path} to the property. Will not be {@literal null}.
* @param value the value that should be bound. Will not be {@literal null}.
* @return can be {@literal null}, in which case the binding will not be incorporated in the overall {@link Predicate}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import com.querydsl.core.types.Path;
/**
* Internal abstraction of mapped paths.
*
*
* @author Oliver Gierke
* @since 1.13
*/
@@ -33,28 +33,28 @@ interface PathInformation {
/**
* The type of the leaf property.
*
*
* @return
*/
Class<?> getLeafType();
/**
* The type of the leaf property's parent type.
*
*
* @return
*/
Class<?> getLeafParentType();
/**
* The name of the leaf property.
*
*
* @return
*/
String getLeafProperty();
/**
* The {@link PropertyDescriptor} for the leaf property.
*
*
* @return
*/
@Nullable
@@ -62,14 +62,14 @@ interface PathInformation {
/**
* The dot separated representation of the current path.
*
*
* @return
*/
String toDotPath();
/**
* Tries to reify a Querydsl {@link Path} from the given {@link PropertyPath} and base.
*
*
* @param path must not be {@literal null}.
* @param base can be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import com.querydsl.core.types.dsl.CollectionPathBase;
/**
* {@link PropertyPath} based implementation of {@link PathInformation}.
*
*
* @author Oliver Gierke
* @author Christoph Strobl
* @since 1.13
@@ -50,7 +50,7 @@ class PropertyPathInformation implements PathInformation {
/**
* Creates a new {@link PropertyPathInformation} for the given path and type.
*
*
* @param path must not be {@literal null} or empty.
* @param type must not be {@literal null}.
* @return
@@ -61,7 +61,7 @@ class PropertyPathInformation implements PathInformation {
/**
* Creates a new {@link PropertyPathInformation} for the given path and {@link TypeInformation}.
*
*
* @param path must not be {@literal null} or empty.
* @param type must not be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import com.querydsl.core.types.EntityPath;
/**
* A component that will customize {@link QuerydslBindings} for the given entity path.
*
*
* @author Oliver Gierke
* @since 1.11
*/
@@ -27,7 +27,7 @@ public interface QuerydslBinderCustomizer<T extends EntityPath<?>> {
/**
* Customize the {@link QuerydslBindings} for the given root.
*
*
* @param bindings the {@link QuerydslBindings} to customize, will never be {@literal null}.
* @param root the entity root, will never be {@literal null}.
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2017 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -235,7 +235,7 @@ public class QuerydslBindings {
/**
* Returns the {@link PathInformation} for the given path and {@link TypeInformation}.
*
*
* @param path must not be {@literal null}.
* @param type must not be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2017 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import com.querydsl.core.types.EntityPath;
/**
* Factory to create {@link QuerydslBindings} using an {@link EntityPathResolver}.
*
*
* @author Oliver Gierke
* @author Christoph Strobl
* @since 1.11
@@ -51,7 +51,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Creates a new {@link QuerydslBindingsFactory} using the given {@link EntityPathResolver}.
*
*
* @param entityPathResolver must not be {@literal null}.
*/
public QuerydslBindingsFactory(EntityPathResolver entityPathResolver) {
@@ -64,7 +64,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
this.repositories = Optional.empty();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)
*/
@@ -77,7 +77,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Returns the {@link EntityPathResolver} used by the factory.
*
*
* @return the entityPathResolver
*/
public EntityPathResolver getEntityPathResolver() {
@@ -87,7 +87,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Creates the {@link QuerydslBindings} to be used using for the given domain type. A {@link QuerydslBinderCustomizer}
* will be auto-detected.
*
*
* @param domainType must not be {@literal null}.
* @return will never be {@literal null}.
*/
@@ -98,7 +98,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined
* {@link QuerydslBinderCustomizer}.
*
*
* @param domainType must not be {@literal null}.
* @param customizer the {@link QuerydslBinderCustomizer} to use, must not be {@literal null}.
* @return will never be {@literal null}.
@@ -111,7 +111,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined
* {@link QuerydslBinderCustomizer}. If no customizer is given, auto-detection will be applied.
*
*
* @param domainType must not be {@literal null}.
* @param customizer the {@link QuerydslBinderCustomizer} to use. If an empty {@link Optional} is given customizer
* detection for the given domain type will be applied.
@@ -134,7 +134,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Tries to detect a Querydsl query type for the given domain type candidate via the configured
* {@link EntityPathResolver}.
*
*
* @param candidate must not be {@literal null}.
* @throws IllegalStateException to indicate the query type can't be found and manual configuration is necessary.
*/
@@ -154,7 +154,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
/**
* Obtains the {@link QuerydslBinderCustomizer} for the given domain type. Will inspect the given annotation for a
* dedicatedly configured one or consider the domain types's repository.
*
*
* @param annotation
* @param domainType
* @return
@@ -176,7 +176,7 @@ public class QuerydslBindingsFactory implements ApplicationContextAware {
* {@link org.springframework.beans.factory.BeanFactory} first or fall back to create a fresh instance through the
* {@link org.springframework.beans.factory.BeanFactory} or finally falling back to a plain instantiation if no
* {@link org.springframework.beans.factory.BeanFactory} is present.
*
*
* @param type must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import com.querydsl.core.types.dsl.SimpleExpression;
* <li><i>{@link java.lang.Object}</i> as {@link SimpleExpression#contains()} on collection properties.</li>
* <li><i>{@link java.util.Collection}</i> as {@link SimpleExpression#in()} on simple properties.</li>
* </ul>
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import com.querydsl.core.types.Path;
/**
* {@link PathInformation} based on a Querydsl {@link Path}.
*
*
* @author Oliver Gierke
* @since 1.13
*/
@@ -41,7 +41,7 @@ class QuerydslPathInformation implements PathInformation {
private final Path<?> path;
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.MappedPath#getLeafType()
*/
@@ -50,7 +50,7 @@ class QuerydslPathInformation implements PathInformation {
return path.getType();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.MappedPath#getLeafParentType()
*/
@@ -66,7 +66,7 @@ class QuerydslPathInformation implements PathInformation {
return parent.getType();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.MappedPath#getLeafProperty()
*/
@@ -75,7 +75,7 @@ class QuerydslPathInformation implements PathInformation {
return path.getMetadata().getElement().toString();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.MappedPath#getLeafPropertyDescriptor()
*/
@@ -85,7 +85,7 @@ class QuerydslPathInformation implements PathInformation {
return BeanUtils.getPropertyDescriptor(getLeafParentType(), getLeafProperty());
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.MappedPath#toDotPath()
*/
@@ -94,7 +94,7 @@ class QuerydslPathInformation implements PathInformation {
return QuerydslUtils.toDotPath(path);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.PathInformation#reifyPath(org.springframework.data.querydsl.EntityPathResolver)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import java.lang.annotation.Target;
/**
* Annotation to customize the binding of HTTP request parameters to a Querydsl {@link com.mysema.query.types.Predicate}
* in Spring MVC handler methods.
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11
@@ -35,7 +35,7 @@ public @interface QuerydslPredicate {
/**
* The root type to create the {@link com.mysema.query.types.Predicate}. Specify this explicitly if the type is not
* contained in the controller method's return type.
*
*
* @return
*/
Class<?> root() default Object.class;
@@ -45,7 +45,7 @@ public @interface QuerydslPredicate {
* {@link QuerydslBinderCustomizer} can be specified here. We'll try to obtain a Spring bean of this type but fall
* back to a plain instantiation if no bean is found in the current
* {@link org.springframework.beans.factory.BeanFactory}.
*
*
* @return
*/
@SuppressWarnings("rawtypes")

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2017 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ import com.querydsl.core.types.Predicate;
/**
* Builder assembling {@link Predicate} out of {@link PropertyValues}.
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11
@@ -58,7 +58,7 @@ public class QuerydslPredicateBuilder {
/**
* Creates a new {@link QuerydslPredicateBuilder} for the given {@link ConversionService} and
* {@link EntityPathResolver}.
*
*
* @param conversionService must not be {@literal null}.
* @param resolver can be {@literal null}.
*/
@@ -75,7 +75,7 @@ public class QuerydslPredicateBuilder {
/**
* Creates a Querydsl {@link Predicate} for the given values, {@link QuerydslBindings} on the given
* {@link TypeInformation}.
*
*
* @param type the type to create a predicate for.
* @param values the values to bind.
* @param bindings the {@link QuerydslBindings} for the predicate.
@@ -122,7 +122,7 @@ public class QuerydslPredicateBuilder {
/**
* Invokes the binding of the given values, for the given {@link PropertyPath} and {@link QuerydslBindings}.
*
*
* @param dotPath must not be {@literal null}.
* @param bindings must not be {@literal null}.
* @param values must not be {@literal null}.
@@ -140,7 +140,7 @@ public class QuerydslPredicateBuilder {
* Returns the {@link Path} for the given {@link PropertyPath} and {@link QuerydslBindings}. Will try to obtain the
* {@link Path} from the bindings first but fall back to reifying it from the PropertyPath in case no specific binding
* has been configured.
*
*
* @param path must not be {@literal null}.
* @param bindings must not be {@literal null}.
* @return
@@ -156,7 +156,7 @@ public class QuerydslPredicateBuilder {
* Converts the given source values into a collection of elements that are of the given {@link PropertyPath}'s type.
* Considers a single element list with an empty {@link String} an empty collection because this basically indicates
* the property having been submitted but no value provided.
*
*
* @param source must not be {@literal null}.
* @param path must not be {@literal null}.
* @return
@@ -184,7 +184,7 @@ public class QuerydslPredicateBuilder {
/**
* Returns the target {@link TypeDescriptor} for the given {@link PathInformation} by either inspecting the field or
* property (the latter preferred) to pick up annotations potentially defined for formatting purposes.
*
*
* @param path must not be {@literal null}.
* @return
*/
@@ -211,7 +211,7 @@ public class QuerydslPredicateBuilder {
/**
* Returns whether the given collection has exactly one element that doesn't contain any text. This is basically an
* indicator that a request parameter has been submitted but no value for it.
*
*
* @param source must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import com.querydsl.core.types.Predicate;
/**
* {@link SingleValueBinding} creates a {@link Predicate} out of given {@link Path} and value. Used for specific
* parameter treatment in {@link QuerydslBindings}.
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11
@@ -32,7 +32,7 @@ public interface SingleValueBinding<T extends Path<? extends S>, S> {
/**
* Returns the predicate to be applied to the given {@link Path} for the given value. The given value will be the
* first the first one provided for the given path and converted into the expected type.
*
*
* @param path {@link Path} to the property. Will not be {@literal null}.
* @param value the value that should be bound. Will not be {@literal null}.
* @return can be {@literal null}, in which case the binding will not be incorporated in the overall {@link Predicate}