Top Description Constructors Methods
org.hibernate.dialect.function

public Class DB2FormatEmulation

extends FormatFunction
Class Inheritance
Imports
java.util.List, org.hibernate.query.ReturnableType, org.hibernate.sql.ast.SqlAstTranslator, org.hibernate.sql.ast.spi.SqlAppender, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.type.spi.TypeConfiguration, jakarta.persistence.TemporalType

Deprecated

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

DB2's varchar_format() can't handle quoted literal strings in the format pattern. So just split the pattern into bits, call varcharformat() on the odd-numbered bits, and concatenate all the nonempty bits at the end.
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.hibernate.dialect.function.FormatFunction:
generateSqmFunctionExpressiongetArgumentListSignature

Constructor Detail

DB2FormatEmulationback to summary
public DB2FormatEmulation(TypeConfiguration typeConfiguration)

Method Detail

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

Overrides org.hibernate.dialect.function.FormatFunction.render.

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

Annotations
@Override