Class DtoWhereConditionClauseTerminal<DTO>

java.lang.Object
org.litebridgedb.orm.api.select.impl.DelegatingSelector<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.OrderByClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.AbstractWhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
org.litebridgedb.orm.api.dto.DtoWhereConditionClauseTerminal<DTO>
All Implemented Interfaces:
org.litebridgedb.orm.api.select.ConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>>, org.litebridgedb.orm.api.select.LimitClauseTerminal<DTO>, org.litebridgedb.orm.api.select.OrderByClauseTerminal<DTO>, org.litebridgedb.orm.api.select.SelectTerminal<DTO>, org.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>, org.litebridgedb.orm.api.select.WhereConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>

public final class DtoWhereConditionClauseTerminal<DTO> extends org.litebridgedb.orm.api.select.impl.AbstractWhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec> implements org.litebridgedb.orm.api.select.WhereConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>
  • Field Summary

    Fields inherited from class org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl

    selectSpec

    Fields inherited from class org.litebridgedb.orm.api.select.impl.DelegatingSelector

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    and(String field)
    Adds an "AND" condition to the current condition clause using the specified column.
     
    orderBy(String... fields)
    Adds an ORDER BY clause to the query, specifying the columns to sort the results by.
    Adds an ORDER BY clause to the query, specifying the fields and columns to sort the results by.

    Methods inherited from class org.litebridgedb.orm.api.select.impl.OrderByClauseTerminalImpl

    limit

    Methods inherited from class org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl

    offset, selectSpec

    Methods inherited from class org.litebridgedb.orm.api.select.impl.DelegatingSelector

    first, firstOrNull, firstOrThrow, firstOrThrow, list, one, oneOrNull, oneOrThrow, oneOrThrow, stream, toSql

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.litebridgedb.orm.api.select.LimitClauseTerminal

    offset

    Methods inherited from interface org.litebridgedb.orm.api.select.OrderByClauseTerminal

    limit

    Methods inherited from interface org.litebridgedb.orm.api.select.SelectTerminal

    first, firstOrNull, firstOrThrow, firstOrThrow, list, one, oneOrNull, oneOrThrow, oneOrThrow, stream, toSql
  • Constructor Details

    • DtoWhereConditionClauseTerminal

      public DtoWhereConditionClauseTerminal(DtoSelector<DTO> delegate)
  • Method Details

    • and

      public DtoWhereConditionClause<DTO> and(String field)
      Description copied from interface: org.litebridgedb.orm.api.select.ConditionClauseTerminal
      Adds an "AND" condition to the current condition clause using the specified column. This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.
      Specified by:
      and in interface org.litebridgedb.orm.api.select.ConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>>
      Parameters:
      field - the name of the column to be used in the "AND" condition
      Returns:
      the parent condition clause interface, allowing further chaining of conditions
    • and

    • orderBy

      public DtoOrderByClause<DTO> orderBy(String... fields)
      Description copied from interface: org.litebridgedb.orm.api.select.WhereClauseTerminal
      Adds an ORDER BY clause to the query, specifying the columns to sort the results by.
      Specified by:
      orderBy in interface org.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>
      Parameters:
      fields - the columns 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 columns 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(FieldColumnSpec... fields)
      Description copied from interface: org.litebridgedb.orm.api.select.WhereClauseTerminal
      Adds an ORDER BY clause to the query, specifying the fields and columns to sort the results by.
      Specified by:
      orderBy in interface org.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>
      Parameters:
      fields - the field and column specifications that determine the order of the results. Each specification includes a mapping of a field to a column. The order in which the specifications are provided defines 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.