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

    • node

      protected final SelectNode node
      The current query node.
    • fromClauseEngine

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

    • FromClauseStart

      public FromClauseStart(SelectNode node, FromClauseEngine fromClauseEngine)
      Constructs a new FromClauseStart.
      Parameters:
      node - the current query node.
      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 SqlFromClauseTerminal from(String table)
      Starts a FROM clause for the given SQL table.
      Parameters:
      table - the table name.
      Returns:
      the SQL from clause terminal.