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

db.sql.api.impl.cmd.basic.AbstractAlias Maven / Gradle / Ivy

There is a newer version: 1.7.6-RC2
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy