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 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.JpaWindoworderBy(Order... expressions)Add order by expressions to the window.JpaWindowpartitionBy(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 aROWSframe clause to the window and define start and endJpaWindowFramespecifications.- Parameters:
startFrame- the start frameendFrame- the optional end frame- Returns:
- the modified window
-
frameRange
JpaWindow frameRange(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Add aRANGEframe clause to the window and define start and endJpaWindowFramespecifications.- Parameters:
startFrame- the start frameendFrame- the optional end frame- Returns:
- the modified window
-
frameGroups
JpaWindow frameGroups(JpaWindowFrame startFrame, JpaWindowFrame endFrame)
Add aGROUPSframe clause to the window and define start and endJpaWindowFramespecifications.- Parameters:
startFrame- the start frameendFrame- the optional end frame- Returns:
- the modified window
-
frameExclude
JpaWindow frameExclude(FrameExclusion frameExclusion)
Set aFrameExclusionfor this window's frame.- Parameters:
frameExclusion- the frame exclusion- Returns:
- the modified window
-
-