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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJpaEvaluationContextExtension(char escapeCharacter) Creates a newJpaEvaluationContextExtensionfor the given escape character. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.spel.spi.EvaluationContextExtension
getFunctions, getProperties
-
Constructor Details
-
JpaEvaluationContextExtension
public JpaEvaluationContextExtension(char escapeCharacter) Creates a newJpaEvaluationContextExtensionfor the given escape character.- Parameters:
escapeCharacter- the character to be used to escape parameters for LIKE expression.
-
-
Method Details
-
getExtensionId
- Specified by:
getExtensionIdin interfaceExtensionIdAware
-
getRootObject
- Specified by:
getRootObjectin interfaceEvaluationContextExtension
-