Package org.hibernate.dialect.function
Class CteGenerateSeriesFunction
java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmSetReturningFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingSetReturningFunctionDescriptor
org.hibernate.dialect.function.GenerateSeriesFunction
org.hibernate.dialect.function.NumberSeriesGenerateSeriesFunction
org.hibernate.dialect.function.CteGenerateSeriesFunction
- All Implemented Interfaces:
SetReturningFunctionRenderer
,SqmSetReturningFunctionDescriptor
Recursive CTE based generate_series function.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.hibernate.dialect.function.NumberSeriesGenerateSeriesFunction
NumberSeriesGenerateSeriesFunction.NumberSeriesGenerateSeriesSetReturningFunctionTypeResolver, NumberSeriesGenerateSeriesFunction.NumberSeriesQueryTransformer
-
Field Summary
Fields inherited from class org.hibernate.dialect.function.NumberSeriesGenerateSeriesFunction
maxSeriesSize
Fields inherited from class org.hibernate.dialect.function.GenerateSeriesFunction
coerceToTimestamp
-
Constructor Summary
ConstructorsConstructorDescriptionCteGenerateSeriesFunction
(int maxSeriesSize, boolean supportsIntervals, boolean coerceToTimestamp, TypeConfiguration typeConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> SelfRenderingSqmSetReturningFunction<T>
generateSqmSetReturningFunctionExpression
(List<? extends SqmTypedNode<?>> arguments, QueryEngine queryEngine) Return an SQM node or subtree representing an invocation of this function with the given arguments.protected void
renderGenerateSeries
(SqlAppender sqlAppender, Expression start, Expression stop, @Nullable Expression step, AnonymousTupleTableGroupProducer tupleType, String tableIdentifierVariable, SqlAstTranslator<?> walker) Methods inherited from class org.hibernate.dialect.function.NumberSeriesGenerateSeriesFunction
add, multiply, multiply, needsVariable
Methods inherited from class org.hibernate.dialect.function.GenerateSeriesFunction
render
Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmSetReturningFunctionDescriptor
generateSqmExpression, getArgumentListSignature, getArgumentsValidator, getArgumentTypeResolver, getName, getSetReturningTypeResolver, 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.SetReturningFunctionRenderer
rendersIdentifierVariable
-
Constructor Details
-
CteGenerateSeriesFunction
public CteGenerateSeriesFunction(int maxSeriesSize, boolean supportsIntervals, boolean coerceToTimestamp, TypeConfiguration typeConfiguration)
-
-
Method Details
-
generateSqmSetReturningFunctionExpression
protected <T> SelfRenderingSqmSetReturningFunction<T> generateSqmSetReturningFunctionExpression(List<? extends SqmTypedNode<?>> arguments, QueryEngine queryEngine) Description copied from class:AbstractSqmSetReturningFunctionDescriptor
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:
generateSqmSetReturningFunctionExpression
in classAbstractSqmSelfRenderingSetReturningFunctionDescriptor
- Parameters:
arguments
- the arguments of the function invocation
-
renderGenerateSeries
protected void renderGenerateSeries(SqlAppender sqlAppender, Expression start, Expression stop, @Nullable Expression step, AnonymousTupleTableGroupProducer tupleType, String tableIdentifierVariable, SqlAstTranslator<?> walker) - Specified by:
renderGenerateSeries
in classNumberSeriesGenerateSeriesFunction
-