Top Description Constructors Methods
org.hibernate.dialect.function

public Class SQLServerFormatEmulation

extends FormatFunction
Class Inheritance
Imports
java.util.List, jakarta.persistence.TemporalType, 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.SqlTypes, org.hibernate.type.spi.TypeConfiguration

Deprecated

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

SQL Server behaves strangely when the first argument to format is of the type time, so we cast to datetime.
Author
Christian Beikov

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

SQLServerFormatEmulationback to summary
public SQLServerFormatEmulation(TypeConfiguration typeConfiguration)

Method Detail

needsDateTimeCastback to summary
private boolean needsDateTimeCast(Expression datetime)
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