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

br.com.objectos.way.sql.Select7 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.Result;
import br.com.objectos.way.db.SelectBuilder;
import br.com.objectos.way.db.Selectable;
import br.com.objectos.way.db.SelectableFrom;
import javax.annotation.Generated;

@Generated("br.com.objectos.way.sql.BootProcessor")
public final class Select7 extends SelectNode.First> implements Select {
  private final T1 column1;

  private final T2 column2;

  private final T3 column3;

  private final T4 column4;

  private final T5 column5;

  private final T6 column6;

  private final T7 column7;

  Select7(T1 column1, T2 column2, T3 column3, T4 column4, T5 column5, T6 column6, T7 column7) {
    this.column1 = column1;
    this.column2 = column2;
    this.column3 = column3;
    this.column4 = column4;
    this.column5 = column5;
    this.column6 = column6;
    this.column7 = column7;
  }

  @Override
  public SelectFrom7 from(SelectableFrom table) {
    return new SelectFrom7<>(this, table);
  }

  @Override
  ResultMapper> mapper() {
    return this::map;
  }

  @Override
  SelectBuilder write0(SelectBuilder sql) {
    return sql.select(column1, column2, column3, column4, column5, column6, column7);
  }

  @SuppressWarnings("unchecked")
  private Row7 map(Result rs) {
    T1 value1 = (T1) column1.read(rs, 1);
    T2 value2 = (T2) column2.read(rs, 2);
    T3 value3 = (T3) column3.read(rs, 3);
    T4 value4 = (T4) column4.read(rs, 4);
    T5 value5 = (T5) column5.read(rs, 5);
    T6 value6 = (T6) column6.read(rs, 6);
    T7 value7 = (T7) column7.read(rs, 7);
    return Row7.of(value1, value2, value3, value4, value5, value6, value7);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy