Class AbstractJsonFunction

java.lang.Object
com.blazebit.persistence.impl.function.jsonset.AbstractJsonFunction
All Implemented Interfaces:
JpqlFunction
Direct Known Subclasses:
AbstractJsonGetFunction, AbstractJsonSetFunction

public abstract class AbstractJsonFunction extends Object implements JpqlFunction
  • Constructor Details

    • AbstractJsonFunction

      protected AbstractJsonFunction(ConcatFunction concatFunction)
  • Method Details

    • isJsonPathTemplate

      protected static boolean isJsonPathTemplate(String argument)
    • toJsonPathTemplate

      protected static String toJsonPathTemplate(List<Object> pathElements, int to, boolean quotePathElements)
      Introduce JSON path template as optional first parameter If first parameter is a literal string, interpret it as JSON path. The remaining arguments are interpreted as varargs named parameters that are used as positional parameters for the json path template. For postgres we need to parse the json path template and reformulate it to the postgres syntax.
    • renderJsonPathTemplate

      protected void renderJsonPathTemplate(FunctionRenderContext context, String jsonPathTemplate, int templateParameterOffset)
    • renderJsonPathTemplateParameter

      protected void renderJsonPathTemplateParameter(FunctionRenderContext context, int parameterIdx)
    • retrieveJsonPathElements

      protected static List<Object> retrieveJsonPathElements(FunctionRenderContext context, int pathStartOffset)