db.sql.api.impl.cmd.basic.AbstractAlias Maven / Gradle / Ivy
package db.sql.api.impl.cmd.basic;
import db.sql.api.Getter;
import db.sql.api.cmd.basic.Alias;
import db.sql.api.impl.tookit.SqlUtil;
public abstract class AbstractAlias> implements Alias {
protected String alias;
@Override
public String getAlias() {
return alias;
}
@Override
public T as(String alias) {
this.alias = alias;
return (T) this;
}
public T as(Getter aliasGetter) {
return this.as(SqlUtil.getAsName(aliasGetter));
}
}