Package org.hibernate.dialect.function
Class DB2SubstringFunction
java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
org.hibernate.dialect.function.DB2SubstringFunction
- All Implemented Interfaces:
FunctionRenderer,SqmFunctionDescriptor
DB2's substring() function requires a code unit and substr() can't optionally take it,
so we render substr() by default. If the code unit is passed, we render substring().
-
Constructor Summary
ConstructorsConstructorDescriptionDB2SubstringFunction(boolean needsCodeUnit, TypeConfiguration typeConfiguration) DB2SubstringFunction(TypeConfiguration typeConfiguration) -
Method Summary
Modifier and TypeMethodDescriptiongetSignature(String name) Used only for pretty-printing the function signature in the log.voidrender(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
filterClauseSupported, generateSqmAggregateFunctionExpression, generateSqmFunctionExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, getFunctionKindMethods inherited from class org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmExpression, generateWindowSqmExpression, getArgumentListSignature, getArgumentsValidator, getArgumentTypeResolver, getName, getReturnSignature, getReturnTypeResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.function.FunctionRenderer
render, render, render, renderMethods inherited from interface org.hibernate.query.sqm.function.SqmFunctionDescriptor
alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression, isPredicate
-
Constructor Details
-
DB2SubstringFunction
-
DB2SubstringFunction
-
-
Method Details
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) - Specified by:
renderin interfaceFunctionRenderer- Overrides:
renderin classAbstractSqmSelfRenderingFunctionDescriptor
-
getSignature
Description copied from interface:SqmFunctionDescriptorUsed only for pretty-printing the function signature in the log.- Specified by:
getSignaturein interfaceSqmFunctionDescriptor- Overrides:
getSignaturein classAbstractSqmFunctionDescriptor- Parameters:
name- the function name- Returns:
- the signature of the function
-