Class SqmWindow
- java.lang.Object
-
- org.hibernate.query.sqm.tree.AbstractSqmNode
-
- org.hibernate.query.sqm.tree.expression.SqmWindow
-
- All Implemented Interfaces:
Serializable,JpaCriteriaNode,JpaWindow,SqmNode,SqmVisitableNode
@Incubating public class SqmWindow extends AbstractSqmNode implements JpaWindow, SqmVisitableNode
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmWindow(NodeBuilder nodeBuilder)SqmWindow(NodeBuilder nodeBuilder, List<SqmExpression<?>> partitions, List<SqmSortSpecification> orderList, FrameMode mode, FrameKind startKind, SqmExpression<?> startExpression, FrameKind endKind, SqmExpression<?> endExpression, FrameExclusion exclusion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccept(SemanticQueryWalker<X> walker)Accept the walker per visitationvoidappendHqlString(StringBuilder sb)SqmWindowcopy(SqmCopyContext context)JpaWindowframeExclude(FrameExclusion frameExclusion)Set aFrameExclusionfor this window's frame.JpaWindowframeGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame)Add aGROUPSframe clause to the window and define start and endJpaWindowFramespecifications.JpaWindowframeRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)Add aRANGEframe clause to the window and define start and endJpaWindowFramespecifications.JpaWindowframeRows(JpaWindowFrame startFrame, JpaWindowFrame endFrame)Add aROWSframe clause to the window and define start and endJpaWindowFramespecifications.SqmExpression<?>getEndExpression()FrameKindgetEndKind()FrameExclusiongetExclusion()FrameModegetMode()List<SqmSortSpecification>getOrderList()List<SqmExpression<?>>getPartitions()SqmExpression<?>getStartExpression()FrameKindgetStartKind()JpaWindoworderBy(Order... orders)Add order by expressions to the window.JpaWindowpartitionBy(Expression<?>... expressions)Add partition by expressions to the window.-
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilder
-
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.tree.SqmNode
asLoggableText, nodeBuilder
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmWindow
public SqmWindow(NodeBuilder nodeBuilder)
-
SqmWindow
public SqmWindow(NodeBuilder nodeBuilder, List<SqmExpression<?>> partitions, List<SqmSortSpecification> orderList, FrameMode mode, FrameKind startKind, SqmExpression<?> startExpression, FrameKind endKind, SqmExpression<?> endExpression, FrameExclusion exclusion)
-
-
Method Detail
-
getPartitions
public List<SqmExpression<?>> getPartitions()
-
getOrderList
public List<SqmSortSpecification> getOrderList()
-
getStartExpression
public SqmExpression<?> getStartExpression()
-
getEndExpression
public SqmExpression<?> getEndExpression()
-
getMode
public FrameMode getMode()
-
getStartKind
public FrameKind getStartKind()
-
getEndKind
public FrameKind getEndKind()
-
getExclusion
public FrameExclusion getExclusion()
-
frameRows
public JpaWindow frameRows(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Description copied from interface:JpaWindowAdd aROWSframe clause to the window and define start and endJpaWindowFramespecifications.
-
frameRange
public JpaWindow frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
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
public JpaWindow frameGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
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
public JpaWindow frameExclude(FrameExclusion frameExclusion)
Description copied from interface:JpaWindowSet aFrameExclusionfor this window's frame.- Specified by:
frameExcludein interfaceJpaWindow- Parameters:
frameExclusion- the frame exclusion- Returns:
- the modified window
-
partitionBy
public JpaWindow partitionBy(Expression<?>... expressions)
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
public JpaWindow orderBy(Order... orders)
Description copied from interface:JpaWindowAdd order by expressions to the window.
-
copy
public SqmWindow copy(SqmCopyContext context)
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
-