Class DtoGroupByClauseTerminal<DTO>

java.lang.Object
org.litebridge.orm.api.select.impl.DelegatingSelector<DTO,DtoSelectSpec>
org.litebridge.orm.api.select.impl.LimitClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridge.orm.api.select.impl.OrderByClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridge.orm.api.select.impl.AbstractGroupByClauseTerminal<DTO,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
org.litebridge.orm.api.dto.DtoGroupByClauseTerminal<DTO>
Type Parameters:
DTO - the type of the DTO
All Implemented Interfaces:
GroupByClauseTerminal<DTO,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>, HavingClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>, LimitClauseTerminal<DTO>, OrderByClauseTerminal<DTO>, SelectTerminal<DTO>

public class DtoGroupByClauseTerminal<DTO> extends org.litebridge.orm.api.select.impl.AbstractGroupByClauseTerminal<DTO,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
Terminal clause for DTO GROUP BY clauses.
  • Constructor Details

    • DtoGroupByClauseTerminal

      public DtoGroupByClauseTerminal(DtoSelector<DTO> delegate)
      Creates a new DtoGroupByClauseTerminal.
      Parameters:
      delegate - the DTO selector delegate
  • Method Details

    • having

      public DtoHavingConditionClause<DTO> having(ExpressionSpec expression)
      Description copied from interface: GroupByClauseTerminal
      Starts a HAVING clause for the SQL query.
      Parameters:
      expression - the expression to apply the filtering condition on
      Returns:
      an instance of HCC representing the next stage of the having condition clause
    • orderBy

      public DtoOrderByClause<DTO> orderBy(String... fields)
      Description copied from interface: HavingClauseTerminal
      Adds an ORDER BY clause to the query, specifying the expressions to sort the results by.
      Parameters:
      fields - the expressions that determine the order of the results. Each column must be valid for the associated table or view in the query. The order in which the expressions are specified determines the priority of ordering.
      Returns:
      an instance of the type representing the ORDER BY clause, allowing further specification of ordering or transitioning to the next query stage.
    • orderBy

      public DtoOrderByClause<DTO> orderBy(ExpressionSpec... fields)
      Description copied from interface: HavingClauseTerminal
      Adds an ORDER BY clause to the query, specifying the fields and expressions to sort the results by.
      Parameters:
      fields - the expressions that determine the order of the results.
      Returns:
      an instance of the type representing the ORDER BY clause, allowing further specification of ordering or transitioning to the next query stage.