Class SqlServerConvertTruncFunction

  • All Implemented Interfaces:
    SqmFunctionDescriptor

    public class SqlServerConvertTruncFunction
    extends TruncFunction
    Custom TruncFunction for SQL Server versions before 16, which uses the custom SqlServerConvertTruncFunction.DateTruncConvertEmulation
    • Constructor Detail

      • SqlServerConvertTruncFunction

        public SqlServerConvertTruncFunction​(TypeConfiguration typeConfiguration)
    • Method Detail

      • generateSqmFunctionExpression

        protected <T> SelfRenderingSqmFunction<T> generateSqmFunctionExpression​(List<? extends SqmTypedNode<?>> arguments,
                                                                                ReturnableType<T> impliedResultType,
                                                                                QueryEngine queryEngine)
        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 class TruncFunction
        Parameters:
        arguments - the arguments of the function invocation
        impliedResultType - the function return type as inferred from its usage