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 query
SELF - the type of the current OrderByClause implementation
OBCC - the type of the OrderByClauseChain for 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

    Modifier and Type
    Method
    Description
    asc()
    Specifies an ascending order for the current ordering clause in a query.
    Specifies a descending order for the current ordering clause in a query.
  • Method Details

    • asc

      OBCC asc()
      Specifies an ascending order for the current ordering clause in a query.
      Returns:
      an OrderByClauseTerminal instance with ascending order applied
    • desc

      OBCC desc()
      Specifies a descending order for the current ordering clause in a query.
      Returns:
      an OrderByClauseTerminal instance with descending order applied