Class PostgreSQLTruncFunction

All Implemented Interfaces:
SqmFunctionDescriptor

public class PostgreSQLTruncFunction extends TruncFunction
Custom TruncFunction for PostgreSQL which uses the dialect-specific function for numeric truncation
  • Constructor Details

    • PostgreSQLTruncFunction

      public PostgreSQLTruncFunction(boolean supportsTwoArguments, TypeConfiguration typeConfiguration)
  • Method Details

    • 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