Package org.hibernate.query.criteria
Interface JpaWindow
-
- All Known Implementing Classes:
SqmWindow
@Incubating public interface JpaWindow
Common contract for window parts used in window and aggregate functions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.JpaWindow
orderBy(Order... expressions)
Add order by expressions to the window.JpaWindow
partitionBy(Expression<?>... expressions)
Add partition by expressions to the window.
-
-
-
Method Detail
-
partitionBy
JpaWindow partitionBy(Expression<?>... expressions)
Add partition by expressions to the window.- Parameters:
expressions
- the partition by expressions- Returns:
- the modified window
-
orderBy
JpaWindow orderBy(Order... expressions)
Add order by expressions to the window.- Parameters:
expressions
- the order by expressions- Returns:
- the modified window
-
frameRows
JpaWindow frameRows(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
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
JpaWindow frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
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
JpaWindow frameGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
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
JpaWindow frameExclude(FrameExclusion frameExclusion)
Set aFrameExclusion
for this window's frame.- Parameters:
frameExclusion
- the frame exclusion- Returns:
- the modified window
-
-