Package com.blazebit.persistence
Interface OrderByBuilder<T extends OrderByBuilder<T>>
- Type Parameters:
T
- The concrete builder type
- All Known Subinterfaces:
BaseCriteriaBuilder<T,
,X> BaseCTECriteriaBuilder<X>
,BaseFinalSetOperationBuilder<T,
,X> BaseFromQueryBuilder<T,
,X> BaseInsertCriteriaBuilder<T,
,X> BaseOngoingFinalSetOperationBuilder<T,
,X> BaseQueryBuilder<T,
,X> BaseSubqueryBuilder<X>
,CriteriaBuilder<T>
,FinalSetOperationCriteriaBuilder<T>
,FinalSetOperationCTECriteriaBuilder<T>
,FinalSetOperationSubqueryBuilder<T>
,FullQueryBuilder<T,
,X> FullSelectCTECriteriaBuilder<X>
,InsertCriteriaBuilder<T>
,LeafOngoingSetOperationCriteriaBuilder<X>
,LeafOngoingSetOperationCTECriteriaBuilder<X>
,LeafOngoingSetOperationSubqueryBuilder<X>
,OngoingFinalSetOperationCriteriaBuilder<T>
,OngoingFinalSetOperationCTECriteriaBuilder<T>
,OngoingFinalSetOperationSubqueryBuilder<T>
,OngoingSetOperationCriteriaBuilder<T,
,Y> OngoingSetOperationCTECriteriaBuilder<T,
,Y> OngoingSetOperationSubqueryBuilder<T,
,Y> PaginatedCriteriaBuilder<T>
,QueryBuilder<T,
,X> ReturningInsertCriteriaBuilder<T,
,X> SelectBaseCTECriteriaBuilder<X>
,SelectCTECriteriaBuilder<X>
,SelectRecursiveCTECriteriaBuilder<X>
,StartOngoingSetOperationCriteriaBuilder<X,
,Y> StartOngoingSetOperationCTECriteriaBuilder<X,
,Y> StartOngoingSetOperationSubqueryBuilder<X,
,Y> SubqueryBuilder<T>
,WindowBuilder<T>
public interface OrderByBuilder<T extends OrderByBuilder<T>>
An interface for builders that support sorting.
This is related to the fact, that a query builder supports order by clauses.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionLikeorderBy(java.lang.String, boolean, boolean)
but withnullFirst
set to false.Adds an order by clause with the given expression to the query.orderByAsc
(String expression) LikeorderByAsc(java.lang.String, boolean)
but withnullFirst
set to false.orderByAsc
(String expression, boolean nullFirst) LikeorderBy(java.lang.String, boolean, boolean)
but withascending
set to true.orderByDesc
(String expression) LikeorderByDesc(java.lang.String, boolean)
but withnullFirst
set to false.orderByDesc
(String expression, boolean nullFirst) LikeorderBy(java.lang.String, boolean, boolean)
but withascending
set to false.
-
Method Details
-
orderBy
LikeorderBy(java.lang.String, boolean, boolean)
but withnullFirst
set to false.- Parameters:
expression
- The expression for the order by clauseascending
- Wether the order should be ascending or descending.- Returns:
- The query builder for chaining calls
- Since:
- 1.4.0
-
orderBy
Adds an order by clause with the given expression to the query.- Parameters:
expression
- The expression for the order by clauseascending
- Wether the order should be ascending or descending.nullFirst
- Wether null elements should be ordered first or not.- Returns:
- The query builder for chaining calls
-
orderByAsc
LikeorderByAsc(java.lang.String, boolean)
but withnullFirst
set to false.- Parameters:
expression
- The expression for the order by clause- Returns:
- The query builder for chaining calls
-
orderByAsc
LikeorderBy(java.lang.String, boolean, boolean)
but withascending
set to true.- Parameters:
expression
- The expression for the order by clausenullFirst
- Wether null elements should be ordered first or not.- Returns:
- The query builder for chaining calls
-
orderByDesc
LikeorderByDesc(java.lang.String, boolean)
but withnullFirst
set to false.- Parameters:
expression
- The expression for the order by clause- Returns:
- The query builder for chaining calls
-
orderByDesc
LikeorderBy(java.lang.String, boolean, boolean)
but withascending
set to false.- Parameters:
expression
- The expression for the order by clausenullFirst
- Wether null elements should be ordered first or not.- Returns:
- The query builder for chaining calls
-