Class AbstractToStringJsonFunction
java.lang.Object
com.blazebit.persistence.impl.function.tostringjson.AbstractToStringJsonFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
ForJsonPathToStringJsonFunction,GroupConcatBasedToStringJsonFunction,MySQLToStringJsonFunction,PostgreSQLToStringJsonFunction
public abstract class AbstractToStringJsonFunction extends Object implements JpqlFunction
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAME -
Constructor Summary
Constructors Constructor Description AbstractToStringJsonFunction() -
Method Summary
Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()Objectprocess(CharSequence result, String[] fields)voidrender(FunctionRenderContext context)abstract voidrender(FunctionRenderContext context, String[] fields, String[] selectItemExpressions, String subquery, int fromIndex)
-
Field Details
-
FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractToStringJsonFunction
public AbstractToStringJsonFunction()
-
-
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
-
process
-
render
public abstract void render(FunctionRenderContext context, String[] fields, String[] selectItemExpressions, String subquery, int fromIndex)
-