Package org.hibernate.dialect.function
Class TrimFunction
java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
org.hibernate.dialect.function.TrimFunction
- All Implemented Interfaces:
FunctionRenderer,SqmFunctionDescriptor
ANSI SQL-standard
trim() function, which has a funny syntax
involving a TrimSpec, and portability is achieved using
Dialect.trimPattern(TrimSpec, boolean).
For example, trim(leading ' ' from text).
-
Constructor Summary
ConstructorsConstructorDescriptionTrimFunction(Dialect dialect, TypeConfiguration typeConfiguration) TrimFunction(Dialect dialect, TypeConfiguration typeConfiguration, SqlAstNodeRenderingMode argumentRenderingMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, 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, getArgumentsValidator, getArgumentTypeResolver, getName, getReturnSignature, getReturnTypeResolver, getSignatureMethods 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
-
TrimFunction
-
TrimFunction
public TrimFunction(Dialect dialect, TypeConfiguration typeConfiguration, SqlAstNodeRenderingMode argumentRenderingMode)
-
-
Method Details
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) - Specified by:
renderin interfaceFunctionRenderer- Overrides:
renderin classAbstractSqmSelfRenderingFunctionDescriptor
-
getArgumentListSignature
- Overrides:
getArgumentListSignaturein classAbstractSqmFunctionDescriptor
-