db.sql.api.cmd.GetterField Maven / Gradle / Ivy
package db.sql.api.cmd;
import db.sql.api.Getter;
public class GetterField implements IColumnField {
private final Getter getter;
private final int storey;
public GetterField(Getter getter) {
this(getter, 1);
}
public GetterField(Getter getter, int storey) {
this.getter = getter;
this.storey = storey;
}
public static GetterField create(Getter getter) {
return create(getter, 1);
}
public static GetterField create(Getter getter, int storey) {
return new GetterField<>(getter, storey);
}
public Getter getGetter() {
return getter;
}
public int getStorey() {
return storey;
}
}