Class AbstractJsonExtractFunction
- java.lang.Object
-
- com.axelor.db.hibernate.dialect.function.AbstractJsonExtractFunction
-
- All Implemented Interfaces:
SQLFunction
- Direct Known Subclasses:
MySQLJsonExtractFunction,OracleJsonExtractFunction,PostgreSQLJsonExtractFunction
public abstract class AbstractJsonExtractFunction extends Object implements SQLFunction
-
-
Constructor Summary
Constructors Constructor Description AbstractJsonExtractFunction(String name, Type type, String cast)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetCast()StringgetName()TypegetReturnType(Type firstArgumentType, Mapping mapping)TypegetType()booleanhasArguments()booleanhasParenthesesIfNoArguments()Stringrender(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)protected StringtransformFunction(String func)protected abstract StringtransformPath(List<String> path)
-
-
-
Method Detail
-
getName
public String getName()
-
getCast
public String getCast()
-
getType
public Type getType()
-
hasArguments
public boolean hasArguments()
- Specified by:
hasArgumentsin interfaceSQLFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Specified by:
hasParenthesesIfNoArgumentsin interfaceSQLFunction
-
getReturnType
public Type getReturnType(Type firstArgumentType, Mapping mapping) throws QueryException
- Specified by:
getReturnTypein interfaceSQLFunction- Throws:
QueryException
-
render
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)
- Specified by:
renderin interfaceSQLFunction
-
-