Class SqmWindow
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.expression.SqmWindow
- All Implemented Interfaces:
Serializable, JpaCriteriaNode, JpaWindow, SqmCacheable, SqmNode, SqmVisitableNode
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmWindow(NodeBuilder nodeBuilder) SqmWindow(NodeBuilder nodeBuilder, List<SqmExpression<?>> partitions, List<SqmSortSpecification> orderList, FrameMode mode, FrameKind startKind, @Nullable SqmExpression<?> startExpression, FrameKind endKind, @Nullable SqmExpression<?> endExpression, FrameExclusion exclusion) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) booleanframeExclude(FrameExclusion frameExclusion) Set aFrameExclusionfor this window's frame.frameGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aGROUPSframe clause to the window and define start and endJpaWindowFramespecifications.frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aRANGEframe clause to the window and define start and endJpaWindowFramespecifications.frameRows(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aROWSframe clause to the window and define start and endJpaWindowFramespecifications.@Nullable SqmExpression<?> getMode()List<SqmExpression<?>> @Nullable SqmExpression<?> inthashCode()booleanisCompatible(Object object) Add order by expressions to the window.partitionBy(Expression<?>... expressions) Add partition by expressions to the window.Methods inherited from class AbstractSqmNode
nodeBuilderMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmWindow
-
SqmWindow
public SqmWindow(NodeBuilder nodeBuilder, List<SqmExpression<?>> partitions, List<SqmSortSpecification> orderList, FrameMode mode, FrameKind startKind, @Nullable SqmExpression<?> startExpression, FrameKind endKind, @Nullable SqmExpression<?> endExpression, FrameExclusion exclusion)
-
-
Method Details
-
getPartitions
-
getOrderList
-
getStartExpression
-
getEndExpression
-
getMode
-
getStartKind
-
getEndKind
-
getExclusion
-
frameRows
Description copied from interface:JpaWindowAdd aROWSframe clause to the window and define start and endJpaWindowFramespecifications. -
frameRange
Description copied from interface:JpaWindowAdd aRANGEframe clause to the window and define start and endJpaWindowFramespecifications.- Specified by:
frameRangein interfaceJpaWindow- Parameters:
startFrame- the start frameendFrame- the optional end frame- Returns:
- the modified window
-
frameGroups
Description copied from interface:JpaWindowAdd aGROUPSframe clause to the window and define start and endJpaWindowFramespecifications.- Specified by:
frameGroupsin interfaceJpaWindow- Parameters:
startFrame- the start frameendFrame- the optional end frame- Returns:
- the modified window
-
frameExclude
Description copied from interface:JpaWindowSet aFrameExclusionfor this window's frame.- Specified by:
frameExcludein interfaceJpaWindow- Parameters:
frameExclusion- the frame exclusion- Returns:
- the modified window
-
partitionBy
Description copied from interface:JpaWindowAdd partition by expressions to the window.- Specified by:
partitionByin interfaceJpaWindow- Parameters:
expressions- the partition by expressions- Returns:
- the modified window
-
orderBy
-
copy
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-