All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.sql.SelectFrom6 Maven / Gradle / Ivy

package br.com.objectos.sql;

import br.com.objectos.db.Dialect;
import br.com.objectos.db.IntTypeColumn;
import br.com.objectos.db.LocalDateTypeColumn;
import br.com.objectos.db.Order;
import br.com.objectos.db.Orderable;
import br.com.objectos.db.SelectBuilder;
import br.com.objectos.db.Selectable;
import br.com.objectos.db.SelectableFrom;
import br.com.objectos.db.StringTypeColumn;
import java.util.Objects;
import javax.annotation.Generated;

@Generated("br.com.objectos.sql.BootProcessor")
public final class SelectFrom6 extends SelectNode> implements SelectFrom {
  private final SelectableFrom table;

  SelectFrom6(Select6 select, SelectableFrom table) {
    super(select);
    this.table = table;
  }

  @Override
  public SimpleSelectQuery6 compile(Dialect dialect) {
    return new SimpleSelectQuery6<>(dialect, this);
  }

  @Override
  public SimpleSelectOrderBy6 orderBy(Orderable o1) {
    return orderBy(o1.asc());
  }

  @Override
  public SimpleSelectOrderBy6 orderBy(Order o1) {
    return orderBy0(o1);
  }

  @Override
  public  SimpleSelectWhere6Int where(X op) {
    Objects.requireNonNull(op);
    return new SimpleSelectWhere6Int<>(this, Keyword.WHERE, op);
  }

  @Override
  public  SimpleSelectWhere6LocalDate where(X op) {
    Objects.requireNonNull(op);
    return new SimpleSelectWhere6LocalDate<>(this, Keyword.WHERE, op);
  }

  @Override
  public  SimpleSelectWhere6String where(X op) {
    Objects.requireNonNull(op);
    return new SimpleSelectWhere6String<>(this, Keyword.WHERE, op);
  }

  @Override
  SelectBuilder write0(SelectBuilder sql) {
    return sql.from(table);
  }

  private SimpleSelectOrderBy6 orderBy0(Order... columns) {
    return new SimpleSelectOrderBy6<>(this, columns);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy