Top Description Constructors Methods
org.hibernate.dialect.function

public Class DB2SubstringFunction

extends AbstractSqmSelfRenderingFunctionDescriptor
Class Inheritance
Imports
java.util.List, org.hibernate.query.ReturnableType, org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor, org.hibernate.query.sqm.produce.function.ArgumentTypesValidator, .FunctionParameterType, .StandardArgumentsValidators, .StandardFunctionArgumentTypeResolvers, .StandardFunctionReturnTypeResolvers, org.hibernate.sql.ast.SqlAstTranslator, org.hibernate.sql.ast.spi.SqlAppender, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.type.StandardBasicTypes, org.hibernate.type.spi.TypeConfiguration

Deprecated

as a consequence of AbstractSqmSelfRenderingFunctionDescriptor being deprecated. See corresponding docs for further information.

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getSignature(String
the function name
name
)

Overrides org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor.getSignature.

Overrides default org.hibernate.query.sqm.function.SqmFunctionDescriptor.getSignature.

Used only for pretty-printing the function signature in the log.
public void
Inherited from org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor:
generateSqmAggregateFunctionExpressiongenerateSqmFunctionExpressiongenerateSqmOrderedSetAggregateFunctionExpressiongenerateSqmWindowFunctionExpressiongetFunctionKind

Constructor Detail

DB2SubstringFunctionback to summary
public DB2SubstringFunction(TypeConfiguration typeConfiguration)

Method Detail

getSignatureback to summary
public String getSignature(String name)

Overrides org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor.getSignature.

Overrides default org.hibernate.query.sqm.function.SqmFunctionDescriptor.getSignature.

Doc from org.hibernate.query.sqm.function.SqmFunctionDescriptor.getSignature.

Used only for pretty-printing the function signature in the log.

Parameters
name:String

the function name

Returns:String

the signature of the function

Annotations
@Override
renderback to summary
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)

Overrides org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor.render.

Implements org.hibernate.query.sqm.function.FunctionRenderer.render.

Annotations
@Override