Class SpannerPostgreSQLTruncFunction
java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.dialect.function.TruncFunction
org.hibernate.dialect.function.PostgreSQLTruncFunction
org.hibernate.dialect.function.SpannerPostgreSQLTruncFunction
- All Implemented Interfaces:
SqmFunctionDescriptor
Spanner-specific TruncFunction that extends PostgreSQLTruncFunction to handle
both numeric and datetime truncation, reusing PostgreSQL logic where
applicable.
-
Nested Class Summary
Nested classes/interfaces inherited from class TruncFunction
TruncFunction.DatetimeTrunc, TruncFunction.TruncArgumentsValidator, TruncFunction.TruncRenderingSupport -
Field Summary
Fields inherited from class TruncFunction
datetimeRenderingSupport, numericRenderingSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> SelfRenderingSqmFunction<T> generateSqmFunctionExpression(List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, QueryEngine queryEngine) Return an SQM node or subtree representing an invocation of this function with the given arguments.Methods inherited from class AbstractSqmFunctionDescriptor
generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmAggregateFunctionExpression, generateSqmExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, generateWindowSqmExpression, getArgumentListSignature, getArgumentsValidator, getArgumentTypeResolver, getName, getReturnSignature, getReturnTypeResolver, getSignatureMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SqmFunctionDescriptor
alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression, getFunctionKind, isPredicate
-
Constructor Details
-
SpannerPostgreSQLTruncFunction
-
-
Method Details
-
generateSqmFunctionExpression
protected <T> SelfRenderingSqmFunction<T> generateSqmFunctionExpression(List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, QueryEngine queryEngine) Description copied from class:AbstractSqmFunctionDescriptorReturn 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:
generateSqmFunctionExpressionin classPostgreSQLTruncFunction- Parameters:
arguments- the arguments of the function invocationimpliedResultType- the function return type as inferred from its usage
-