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> X
accept(SemanticQueryWalker<X> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
SqmWindow
copy(SqmCopyContext context)
JpaWindow
frameExclude(FrameExclusion frameExclusion)
Set aFrameExclusion
for this window's frame.JpaWindow
frameGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Add aGROUPS
frame clause to the window and define start and endJpaWindowFrame
specifications.JpaWindow
frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Add aRANGE
frame clause to the window and define start and endJpaWindowFrame
specifications.JpaWindow
frameRows(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Add aROWS
frame clause to the window and define start and endJpaWindowFrame
specifications.SqmExpression<?>
getEndExpression()
FrameKind
getEndKind()
FrameExclusion
getExclusion()
FrameMode
getMode()
List<SqmSortSpecification>
getOrderList()
List<SqmExpression<?>>
getPartitions()
SqmExpression<?>
getStartExpression()
FrameKind
getStartKind()
JpaWindow
orderBy(Order... orders)
Add order by expressions to the window.JpaWindow
partitionBy(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:JpaWindow
Add aROWS
frame clause to the window and define start and endJpaWindowFrame
specifications.
-
frameRange
public JpaWindow frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Description copied from interface:JpaWindow
Add aRANGE
frame clause to the window and define start and endJpaWindowFrame
specifications.- Specified by:
frameRange
in 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:JpaWindow
Add aGROUPS
frame clause to the window and define start and endJpaWindowFrame
specifications.- Specified by:
frameGroups
in interfaceJpaWindow
- Parameters:
startFrame
- the start frameendFrame
- the optional end frame- Returns:
- the modified window
-
frameExclude
public JpaWindow frameExclude(FrameExclusion frameExclusion)
Description copied from interface:JpaWindow
Set aFrameExclusion
for this window's frame.- Specified by:
frameExclude
in interfaceJpaWindow
- Parameters:
frameExclusion
- the frame exclusion- Returns:
- the modified window
-
partitionBy
public JpaWindow partitionBy(Expression<?>... expressions)
Description copied from interface:JpaWindow
Add partition by expressions to the window.- Specified by:
partitionBy
in interfaceJpaWindow
- Parameters:
expressions
- the partition by expressions- Returns:
- the modified window
-
orderBy
public JpaWindow orderBy(Order... orders)
Description copied from interface:JpaWindow
Add order by expressions to the window.
-
copy
public SqmWindow copy(SqmCopyContext context)
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
-