Class WindowDefinition<Q extends WindowDefinition<Q,?>,T>
java.lang.Object
com.querydsl.core.types.MutableExpressionBase<T>
com.blazebit.persistence.querydsl.WindowDefinition<Q,T>
- Type Parameters:
Q- Concrete window typeT- Expression result type
- All Implemented Interfaces:
com.querydsl.core.types.Expression<T>,Serializable
- Direct Known Subclasses:
NamedWindow,WindowFunction
public class WindowDefinition<Q extends WindowDefinition<Q,?>,T>
extends com.querydsl.core.types.MutableExpressionBase<T>
A base class for window definition expressions.
- Since:
- 1.5.0
- Author:
- Jan-Willem Gmelig Meyling
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWindowDefinition(Class<? extends T> clasz) WindowDefinition(Class<? extends T> clasz, String baseWindowName) -
Method Summary
Modifier and TypeMethodDescriptionReturn the base window namecom.querydsl.core.types.Expression<?>Return the frame end expressionReturn the frame end typeReturn the frame modecom.querydsl.core.types.Expression<?>Return the frame start expressionReturn the frame start typeList<com.querydsl.core.types.OrderSpecifier<?>>Get the OrderSpecifiersList<com.querydsl.core.types.Expression<?>>Get the partition specifierscom.querydsl.core.types.Expression<T>getValue()Construct a template expression for this Window Definition.groups()Initiate aWindowRowsbuilder inGROUPSmode.orderBy(com.querydsl.core.types.dsl.ComparableExpressionBase<?> orderBy) Add an order by clause to this window definition.orderBy(com.querydsl.core.types.dsl.ComparableExpressionBase<?>... orderBy) Add an order by clause to this window definition.orderBy(com.querydsl.core.types.OrderSpecifier<?> orderBy) Add an order by clause to this window definition.orderBy(com.querydsl.core.types.OrderSpecifier<?>... orderBy) Add an order by clause to this window definition.partitionBy(com.querydsl.core.types.Expression<?> partitionBy) Add an partition by clause to this window definition.partitionBy(com.querydsl.core.types.Expression<?>... partitionBy) Add an partition by clause to this window definition.range()Initiate aWindowRowsbuilder inRANGEmode.rows()Initiate aWindowRowsbuilder inROWSmode.Methods inherited from class com.querydsl.core.types.MutableExpressionBase
getType, hashCode, toString
-
Constructor Details
-
WindowDefinition
-
WindowDefinition
-
-
Method Details
-
getOrderBy
Get the OrderSpecifiers- Returns:
- order by
-
getPartitionBy
Get the partition specifiers- Returns:
- partition by
-
accept
-
getValue
Construct a template expression for this Window Definition.- Returns:
- template expression
-
orderBy
Add an order by clause to this window definition.- Parameters:
orderBy- order by expression- Returns:
- this window definition
-
orderBy
Add an order by clause to this window definition.- Parameters:
orderBy- order by expressions- Returns:
- this window definition
-
orderBy
Add an order by clause to this window definition.- Parameters:
orderBy- order by expression- Returns:
- this window definition
-
orderBy
Add an order by clause to this window definition.- Parameters:
orderBy- order by expressions- Returns:
- this window definition
-
partitionBy
Add an partition by clause to this window definition.- Parameters:
partitionBy- partition by expression- Returns:
- this window definition
-
partitionBy
Add an partition by clause to this window definition.- Parameters:
partitionBy- partition by expressions- Returns:
- this window definition
-
getBaseWindowName
Return the base window name- Returns:
- the base window name, if null if none
-
getFrameMode
Return the frame mode- Returns:
- the frame mode, or null if none
-
getFrameStartType
Return the frame start type- Returns:
- the frame start type, or null if none
-
getFrameStartExpression
public com.querydsl.core.types.Expression<?> getFrameStartExpression()Return the frame start expression- Returns:
- the frame start expression, or null if none
-
getFrameEndType
Return the frame end type- Returns:
- the frame end type, or null if none
-
getFrameEndExpression
public com.querydsl.core.types.Expression<?> getFrameEndExpression()Return the frame end expression- Returns:
- the frame end expression, or null if none
-
rows
Initiate aWindowRowsbuilder inROWSmode.- Returns:
ROWSclause builder
-
range
Initiate aWindowRowsbuilder inRANGEmode.- Returns:
RANGEclause builder
-
groups
Initiate aWindowRowsbuilder inGROUPSmode.- Returns:
GROUPSclause builder
-