Class AbstractJsonFunction
java.lang.Object
com.blazebit.persistence.impl.function.jsonset.AbstractJsonFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
AbstractJsonGetFunction,AbstractJsonSetFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanisJsonPathTemplate(String argument) protected voidrenderJsonPathTemplate(FunctionRenderContext context, String jsonPathTemplate, int templateParameterOffset) protected voidrenderJsonPathTemplateParameter(FunctionRenderContext context, int parameterIdx) retrieveJsonPathElements(FunctionRenderContext context, int pathStartOffset) protected static StringtoJsonPathTemplate(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blazebit.persistence.spi.JpqlFunction
getReturnType, hasArguments, hasParenthesesIfNoArguments, render
-
Constructor Details
-
AbstractJsonFunction
-
-
Method Details
-
isJsonPathTemplate
-
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
-
retrieveJsonPathElements
protected static List<Object> retrieveJsonPathElements(FunctionRenderContext context, int pathStartOffset)
-