Class FromClauseStart

java.lang.Object
org.litebridge.orm.api.select.FromClauseStart

public final class FromClauseStart extends Object
Entry point for the "FROM" clause of a query.
  • Field Details

    • expressionSpecs

      protected final ExpressionSpec[] expressionSpecs
      The expression specifications to select.
    • fromClauseEngine

      protected final FromClauseEngine fromClauseEngine
      The from clause engine.
  • Constructor Details

    • FromClauseStart

      public FromClauseStart(FromClauseEngine fromClauseEngine)
      Constructs a new FromClauseStart.
      Parameters:
      fromClauseEngine - the from clause engine.
    • FromClauseStart

      public FromClauseStart(ExpressionSpec[] expressionSpecs, FromClauseEngine fromClauseEngine)
      Constructs a new FromClauseStart with the given expression specifications.
      Parameters:
      expressionSpecs - the expression specifications.
      fromClauseEngine - the from clause engine.
  • Method Details

    • from

      public <DTO> DtoFromClauseTerminal<DTO> from(Class<DTO> dtoClass)
      Starts a FROM clause for the given DTO class.
      Type Parameters:
      DTO - the DTO type.
      Parameters:
      dtoClass - the DTO class.
      Returns:
      the DTO from clause terminal.
    • from

      public <DTO> DtoFromClauseTerminal<DTO> from(Class<DTO> dtoClass, Class<?> contextDtoClass)
      Starts a FROM clause for the given DTO class within the context of another DTO class.
      Type Parameters:
      DTO - the DTO type.
      Parameters:
      dtoClass - the DTO class.
      contextDtoClass - the context DTO class.
      Returns:
      the DTO from clause terminal.
    • from

      public <DTO> DtoFromClauseTerminal<DTO> from(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy)
      Starts a FROM clause for the given DTO class with a specific related DTO strategy.
      Type Parameters:
      DTO - the DTO type.
      Parameters:
      dtoClass - the DTO class.
      relatedDtoStrategy - the related DTO strategy.
      Returns:
      the DTO from clause terminal.
    • from

      public SqlFromClauseTerminal from(String table)
      Starts a FROM clause for the given SQL table.
      Parameters:
      table - the table name.
      Returns:
      the SQL from clause terminal.