Class JpaEvaluationContextExtension

java.lang.Object
org.springframework.data.jpa.repository.support.JpaEvaluationContextExtension
All Implemented Interfaces:
org.springframework.data.spel.spi.EvaluationContextExtension, org.springframework.data.spel.spi.ExtensionIdAware

public class JpaEvaluationContextExtension extends Object implements org.springframework.data.spel.spi.EvaluationContextExtension
EvaluationContextExtension to register EscapeCharacter as root object to essentially expose an expose(…) function to SpEL.
Author:
Oliver Drotbohm
  • Constructor Details

    • JpaEvaluationContextExtension

      public JpaEvaluationContextExtension(char escapeCharacter)
      Creates a new JpaEvaluationContextExtension for the given escape character.
      Parameters:
      escapeCharacter - the character to be used to escape parameters for LIKE expression.
  • Method Details

    • getExtensionId

      public String getExtensionId()
      Specified by:
      getExtensionId in interface org.springframework.data.spel.spi.ExtensionIdAware
    • getRootObject

      public Object getRootObject()
      Specified by:
      getRootObject in interface org.springframework.data.spel.spi.EvaluationContextExtension