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

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

package br.com.objectos.sql;

import br.com.objectos.db.Condition;
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.ParameterBinder;
import br.com.objectos.db.SelectBuilder;
import br.com.objectos.db.Selectable;
import br.com.objectos.db.StringTypeColumn;
import javax.annotation.Generated;

@Generated("br.com.objectos.sql.BootProcessor")
public final class SimpleSelectWhere14 extends SelectNode> implements SimpleSelectWhere> {
  private final Condition condition;

  SimpleSelectWhere14(SelectNode> previous, Condition condition) {
    super(previous);
    this.condition = condition;
  }

  @Override
  public  SimpleSelectWhere14Int and(X column) {
    return new SimpleSelectWhere14Int<>(this, Keyword.AND, column);
  }

  @Override
  public  SimpleSelectWhere14LocalDate and(X column) {
    return new SimpleSelectWhere14LocalDate<>(this, Keyword.AND, column);
  }

  @Override
  public  SimpleSelectWhere14String and(X column) {
    return new SimpleSelectWhere14String<>(this, Keyword.AND, column);
  }

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

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

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

  @Override
  ParameterBinder bind0(ParameterBinder binder) {
    condition.bind(binder);
    return binder;
  }

  @Override
  SelectBuilder write0(SelectBuilder sql) {
    return sql.where(condition);
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy