Package org.hibernate.query.criteria
Interface JpaWindow
- All Known Implementing Classes:
SqmWindow
Common contract for window parts used in window and aggregate functions.
-
Method Summary
Modifier and TypeMethodDescriptionframeExclude
(FrameExclusion frameExclusion) Set aFrameExclusion
for this window's frame.frameGroups
(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aGROUPS
frame clause to the window and define start and endJpaWindowFrame
specifications.frameRange
(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aRANGE
frame clause to the window and define start and endJpaWindowFrame
specifications.frameRows
(JpaWindowFrame startFrame, JpaWindowFrame endFrame) Add aROWS
frame clause to the window and define start and endJpaWindowFrame
specifications.Add order by expressions to the window.partitionBy
(Expression<?>... expressions) Add partition by expressions to the window.
-
Method Details
-
partitionBy
Add partition by expressions to the window.- Parameters:
expressions
- the partition by expressions- Returns:
- the modified window
-
orderBy
Add order by expressions to the window.- Parameters:
expressions
- the order by expressions- Returns:
- the modified window
-
frameRows
Add aROWS
frame clause to the window and define start and endJpaWindowFrame
specifications.- Parameters:
startFrame
- the start frameendFrame
- the optional end frame- Returns:
- the modified window
-
frameRange
Add aRANGE
frame clause to the window and define start and endJpaWindowFrame
specifications.- Parameters:
startFrame
- the start frameendFrame
- the optional end frame- Returns:
- the modified window
-
frameGroups
Add aGROUPS
frame clause to the window and define start and endJpaWindowFrame
specifications.- Parameters:
startFrame
- the start frameendFrame
- the optional end frame- Returns:
- the modified window
-
frameExclude
Set aFrameExclusion
for this window's frame.- Parameters:
frameExclusion
- the frame exclusion- Returns:
- the modified window
-