Package org.hibernate.dialect.function
Class SqlServerConvertTruncFunction
- java.lang.Object
-
- org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
-
- org.hibernate.dialect.function.TruncFunction
-
- org.hibernate.dialect.function.SqlServerConvertTruncFunction
-
- All Implemented Interfaces:
SqmFunctionDescriptor
public class SqlServerConvertTruncFunction extends TruncFunction
CustomTruncFunction
for SQL Server versions < 16 which uses the customSqlServerConvertTruncFunction.DateTruncConvertEmulation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.dialect.function.TruncFunction
TruncFunction.DatetimeTrunc, TruncFunction.TruncArgumentsValidator
-
-
Field Summary
-
Fields inherited from class org.hibernate.dialect.function.TruncFunction
datetimeRenderingSupport, numericRenderingSupport
-
-
Constructor Summary
Constructors Constructor Description SqlServerConvertTruncFunction(TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> SelfRenderingSqmFunction<T>
generateSqmFunctionExpression(List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, QueryEngine queryEngine, TypeConfiguration typeConfiguration)
Return an SQM node or subtree representing an invocation of this function with the given arguments.-
Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmAggregateFunctionExpression, generateSqmExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, generateWindowSqmExpression, getArgumentListSignature, 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.SqmFunctionDescriptor
alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression, getFunctionKind
-
-
-
-
Constructor Detail
-
SqlServerConvertTruncFunction
public SqlServerConvertTruncFunction(TypeConfiguration typeConfiguration)
-
-
Method Detail
-
generateSqmFunctionExpression
protected <T> SelfRenderingSqmFunction<T> generateSqmFunctionExpression(List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, QueryEngine queryEngine, TypeConfiguration typeConfiguration)
Description copied from class:AbstractSqmFunctionDescriptor
Return an SQM node or subtree representing an invocation of this function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.- Overrides:
generateSqmFunctionExpression
in classTruncFunction
- Parameters:
arguments
- the arguments of the function invocationimpliedResultType
- the function return type as inferred from its usage
-
-