Class AbstractJsonExtractFunction
java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
org.hibernate.query.sqm.function.NamedSqmFunctionDescriptor
org.hibernate.dialect.function.StandardSQLFunction
com.axelor.db.hibernate.dialect.function.AbstractJsonExtractFunction
- All Implemented Interfaces:
FunctionRenderer,FunctionRenderingSupport,SqmFunctionDescriptor
- Direct Known Subclasses:
MySQLJsonExtractFunction,OracleJsonExtractFunction,PostgreSQLJsonExtractFunction
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJsonExtractFunction(String name, BasicTypeReference<?> type, String cast) protectedAbstractJsonExtractFunction(String name, BasicTypeReference<?> type, String cast, String transformFunction, Collector<CharSequence, ?, String> collectPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> translator) voidrenderPath(SqlAppender sqlAppender, List<? extends SqlAstNode> pathArgs, ReturnableType<?> returnType, SqlAstTranslator<?> translator) Renders the JSON path part.Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getTypeMethods inherited from class org.hibernate.query.sqm.function.NamedSqmFunctionDescriptor
alwaysIncludesParentheses, getArgumentListSignature, getName, render, render, render, toStringMethods inherited from class org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
generateSqmAggregateFunctionExpression, generateSqmFunctionExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, getFunctionKindMethods inherited from class org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmExpression, generateWindowSqmExpression, getArgumentsValidator, getArgumentTypeResolver, getReturnSignature, getReturnTypeResolver, getSignatureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.function.FunctionRenderer
renderMethods inherited from interface org.hibernate.query.sqm.function.FunctionRenderingSupport
render, render, renderMethods inherited from interface org.hibernate.query.sqm.function.SqmFunctionDescriptor
generateSqmExpression, generateSqmExpression
-
Constructor Details
-
AbstractJsonExtractFunction
-
AbstractJsonExtractFunction
protected AbstractJsonExtractFunction(String name, BasicTypeReference<?> type, String cast, String transformFunction, Collector<CharSequence, ?, String> collectPath)
-
-
Method Details
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> translator) - Specified by:
renderin interfaceFunctionRenderer- Specified by:
renderin interfaceFunctionRenderingSupport- Overrides:
renderin classNamedSqmFunctionDescriptor
-
renderPath
public void renderPath(SqlAppender sqlAppender, List<? extends SqlAstNode> pathArgs, ReturnableType<?> returnType, SqlAstTranslator<?> translator) Renders the JSON path part.Default implementation uses
collectPath.- Parameters:
sqlAppender- The SQL appender to which the rendered SQL will be added.pathArgs- A list of SQL AST nodes representing the JSON path components.returnType- The return type of the rendered function.translator- The SQL AST translator.- Throws:
NullPointerException- ifcollectPathisnull.
-