|
|
|
|
@ -15,6 +15,8 @@
@@ -15,6 +15,8 @@
|
|
|
|
|
*/ |
|
|
|
|
package org.springframework.data.querydsl.binding; |
|
|
|
|
|
|
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
|
|
|
|
|
|
import com.querydsl.core.types.Path; |
|
|
|
|
import com.querydsl.core.types.Predicate; |
|
|
|
|
|
|
|
|
|
@ -31,12 +33,13 @@ public interface SingleValueBinding<T extends Path<? extends S>, S> {
@@ -31,12 +33,13 @@ 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. |
|
|
|
|
* 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} |
|
|
|
|
* . |
|
|
|
|
* @return can be {@literal null}, in which case the binding will not be incorporated in the overall |
|
|
|
|
* {@link Predicate}. |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
Predicate bind(T path, S value); |
|
|
|
|
} |
|
|
|
|
|