Class JpaEvaluationContextExtension
java.lang.Object
org.springframework.data.jpa.repository.support.JpaEvaluationContextExtension
- All Implemented Interfaces:
EvaluationContextExtension
,ExtensionIdAware
EvaluationContextExtension
to register EscapeCharacter
as root object to essentially expose an
expose(…)
function to SpEL.- Author:
- Oliver Drotbohm
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionJpaEvaluationContextExtension
(char escapeCharacter) Creates a newJpaEvaluationContextExtension
for the given escape character. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.spel.spi.EvaluationContextExtension
getFunctions, getProperties
-
Constructor Details
-
JpaEvaluationContextExtension
public JpaEvaluationContextExtension(char escapeCharacter) Creates a newJpaEvaluationContextExtension
for the given escape character.- Parameters:
escapeCharacter
- the character to be used to escape parameters for LIKE expression.
-
-
Method Details
-
getExtensionId
- Specified by:
getExtensionId
in interfaceExtensionIdAware
-
getRootObject
- Specified by:
getRootObject
in interfaceEvaluationContextExtension
-