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 String
getCast()
String
getName()
Type
getReturnType(Type firstArgumentType, Mapping mapping)
Type
getType()
boolean
hasArguments()
boolean
hasParenthesesIfNoArguments()
String
render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)
protected String
transformFunction(String func)
protected abstract String
transformPath(List<String> path)
-
-
-
Method Detail
-
getName
public String getName()
-
getCast
public String getCast()
-
getType
public Type getType()
-
hasArguments
public boolean hasArguments()
- Specified by:
hasArguments
in interfaceSQLFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Specified by:
hasParenthesesIfNoArguments
in interfaceSQLFunction
-
getReturnType
public Type getReturnType(Type firstArgumentType, Mapping mapping) throws QueryException
- Specified by:
getReturnType
in interfaceSQLFunction
- Throws:
QueryException
-
render
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)
- Specified by:
render
in interfaceSQLFunction
-
-