Class AbstractJsonGetFunction
java.lang.Object
com.blazebit.persistence.impl.function.jsonget.AbstractJsonGetFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
DB2JsonGetFunction,MSSQLJsonGetFunction,MSSQLJsonSetFunction,MySQL8JsonGetFunction,OracleJsonGetFunction,PostgreSQLJsonGetFunction
public abstract class AbstractJsonGetFunction extends Object implements JpqlFunction
- Since:
- 1.5.0
- Author:
- Moritz Becker
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAME -
Constructor Summary
Constructors Constructor Description AbstractJsonGetFunction() -
Method Summary
Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(FunctionRenderContext context)protected abstract voidrender0(FunctionRenderContext context)static List<Object>retrieveJsonPathElements(FunctionRenderContext context, int pathStartOffset)static StringtoJsonPath(List<Object> pathElements, int to, boolean quotePathElements)
-
Field Details
-
FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractJsonGetFunction
public AbstractJsonGetFunction()
-
-
Method Details
-
hasArguments
public boolean hasArguments()- Specified by:
hasArgumentsin interfaceJpqlFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()- Specified by:
hasParenthesesIfNoArgumentsin interfaceJpqlFunction
-
getReturnType
- Specified by:
getReturnTypein interfaceJpqlFunction
-
render
- Specified by:
renderin interfaceJpqlFunction
-
render0
-
toJsonPath
-
retrieveJsonPathElements
public static List<Object> retrieveJsonPathElements(FunctionRenderContext context, int pathStartOffset)
-