Class GaussDBTruncFunction

java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.dialect.function.TruncFunction
org.hibernate.community.dialect.function.GaussDBTruncFunction
All Implemented Interfaces:
org.hibernate.query.sqm.function.SqmFunctionDescriptor

public class GaussDBTruncFunction extends org.hibernate.dialect.function.TruncFunction
Custom TruncFunction for GaussDB which uses the dialect-specific function for numeric truncation
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hibernate.dialect.function.TruncFunction

    org.hibernate.dialect.function.TruncFunction.DatetimeTrunc, org.hibernate.dialect.function.TruncFunction.TruncArgumentsValidator, org.hibernate.dialect.function.TruncFunction.TruncRenderingSupport
  • Field Summary

    Fields inherited from class org.hibernate.dialect.function.TruncFunction

    datetimeRenderingSupport, numericRenderingSupport
  • Constructor Summary

    Constructors
    Constructor
    Description
    GaussDBTruncFunction(boolean supportsTwoArguments, org.hibernate.type.spi.TypeConfiguration typeConfiguration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T> org.hibernate.query.sqm.function.SelfRenderingSqmFunction<T>
    generateSqmFunctionExpression(List<? extends org.hibernate.query.sqm.tree.SqmTypedNode<?>> arguments, org.hibernate.metamodel.model.domain.ReturnableType<T> impliedResultType, org.hibernate.query.spi.QueryEngine queryEngine)
     

    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 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, isPredicate
  • Constructor Details

    • GaussDBTruncFunction

      public GaussDBTruncFunction(boolean supportsTwoArguments, org.hibernate.type.spi.TypeConfiguration typeConfiguration)
  • Method Details

    • generateSqmFunctionExpression

      protected <T> org.hibernate.query.sqm.function.SelfRenderingSqmFunction<T> generateSqmFunctionExpression(List<? extends org.hibernate.query.sqm.tree.SqmTypedNode<?>> arguments, org.hibernate.metamodel.model.domain.ReturnableType<T> impliedResultType, org.hibernate.query.spi.QueryEngine queryEngine)
      Overrides:
      generateSqmFunctionExpression in class org.hibernate.dialect.function.TruncFunction