br.com.objectos.sql.Select1 Maven / Gradle / Ivy
package br.com.objectos.sql;
import br.com.objectos.db.Result;
import br.com.objectos.db.SelectBuilder;
import br.com.objectos.db.Selectable;
import br.com.objectos.db.SelectableFrom;
import javax.annotation.Generated;
@Generated("br.com.objectos.sql.BootProcessor")
public final class Select1 extends SelectNode.First> implements Select {
private final T1 column1;
Select1(T1 column1) {
this.column1 = column1;
}
@Override
public SelectFrom1 from(SelectableFrom table) {
return new SelectFrom1<>(this, table);
}
@Override
ResultMapper> mapper() {
return this::map;
}
@Override
SelectBuilder write0(SelectBuilder sql) {
return sql.select(column1);
}
@SuppressWarnings("unchecked")
private Row1 map(Result rs) {
T1 value1 = (T1) column1.read(rs, 1);
return Row1.of(value1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy