Package org.hibernate.dialect.function
Class SQLServerFormatEmulation
- java.lang.Object
-
- org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
-
- org.hibernate.dialect.function.FormatFunction
-
- org.hibernate.dialect.function.SQLServerFormatEmulation
-
- All Implemented Interfaces:
FunctionRenderingSupport
,SqmFunctionDescriptor
public class SQLServerFormatEmulation extends FormatFunction
SQL Server behaves strangely when the first argument to format is of the type time, so we cast to datetime.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.dialect.function.FormatFunction
FormatFunction.FormatSqmFunction<T>
-
-
Constructor Summary
Constructors Constructor Description SQLServerFormatEmulation(TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, SqlAstTranslator<?> walker)
-
Methods inherited from class org.hibernate.dialect.function.FormatFunction
generateSqmFunctionExpression, getArgumentListSignature
-
Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmAggregateFunctionExpression, generateSqmExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, generateWindowSqmExpression, getArgumentsValidator, getArgumentTypeResolver, getName, getReturnSignature, getReturnTypeResolver, getSignature
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.sqm.function.FunctionRenderingSupport
render, render, render
-
Methods inherited from interface org.hibernate.query.sqm.function.SqmFunctionDescriptor
alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression, getFunctionKind
-
-
-
-
Constructor Detail
-
SQLServerFormatEmulation
public SQLServerFormatEmulation(TypeConfiguration typeConfiguration)
-
-
Method Detail
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, SqlAstTranslator<?> walker)
- Specified by:
render
in interfaceFunctionRenderingSupport
- Overrides:
render
in classFormatFunction
-
-