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

br.com.objectos.way.sql.SelectFrom5 Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package br.com.objectos.way.sql;

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

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

  SelectFrom5(Select5 select, SelectableFrom table) {
    super(select);
    this.table = table;
  }

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy