Module litebridge.orm
Package org.litebridgedb.orm.api.select
Interface OrderByClause<DTO,SELF extends OrderByClause<DTO,SELF,OBCC>,OBCC extends OrderByClauseChain<DTO,SELF,OBCC>>
- Type Parameters:
DTO- the data transfer object (DTO) type that represents the result of the querySELF- the type of the currentOrderByClauseimplementationOBCC- the type of theOrderByClauseChainfor chaining additional order by clauses
- All Known Implementing Classes:
DtoOrderByClause,SqlOrderByClause
public interface OrderByClause<DTO,SELF extends OrderByClause<DTO,SELF,OBCC>,OBCC extends OrderByClauseChain<DTO,SELF,OBCC>>
Clause in a SQL query for specifying ordering of rows based on one or more expressions
or fields.
This interface provides methods to define the order by direction, either ascending or descending, in a type-safe and fluent manner.
-
Method Summary
-
Method Details
-
asc
OBCC asc()Specifies an ascending order for the current ordering clause in a query.- Returns:
- an
OrderByClauseTerminalinstance with ascending order applied
-
desc
OBCC desc()Specifies a descending order for the current ordering clause in a query.- Returns:
- an
OrderByClauseTerminalinstance with descending order applied
-