Class JpaParametersParameterAccessor
java.lang.Object
org.springframework.data.repository.query.ParametersParameterAccessor
org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor
- All Implemented Interfaces:
Iterable<Object>, ParameterAccessor
ParameterAccessor based on an Parameters instance. It also
offers access to all the values, not just the bindable ones based on a JpaParameters.JpaParameter instance.- Author:
- Jens Schauder, Mark Paluch, Greg Turnquist
-
Constructor Summary
ConstructorsConstructorDescriptionJpaParametersParameterAccessor(JpaParameters parameters, Object[] values) Creates a newParametersParameterAccessor. -
Method Summary
Modifier and TypeMethodDescription<T> TReturns theScoringFunction.Returns theScoringFunction.<T> @Nullable TObject[]booleanReturns whether to normalize similarities (i.e. translate the database-specific score intoSimilarity).protected ObjectpotentiallyUnwrap(Object parameterValue) Apply potential unwrapping toparameterValue.Methods inherited from class ParametersParameterAccessor
findDynamicProjection, getBindableValue, getLimit, getPageable, getScore, getScoreRange, getScrollPosition, getSort, getValue, getVector, hasBindableNullValue, iteratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
JpaParametersParameterAccessor
Creates a newParametersParameterAccessor.- Parameters:
parameters- must not be null.values- must not be null.
-
-
Method Details
-
getParameters
- Overrides:
getParametersin classParametersParameterAccessor
-
getValue
-
getValues
- Overrides:
getValuesin classParametersParameterAccessor
-
potentiallyUnwrap
-
getScoringFunction
-
normalizeSimilarity
public boolean normalizeSimilarity()Returns whether to normalize similarities (i.e. translate the database-specific score intoSimilarity).- Returns:
-
doWithScore
-