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

org.fluentjdbc.DatabaseColumnReference Maven / Gradle / Ivy

There is a newer version: 0.5.3
Show newest version
package org.fluentjdbc;

public class DatabaseColumnReference {
    private final String columnName;
    private final String tableName;
    private final DatabaseTableAlias alias;

    DatabaseColumnReference(DatabaseTableAlias alias, String columnName) {
        this.columnName = columnName;
        this.tableName = alias.getTableName();
        this.alias = alias;
    }

    public DatabaseTableAlias getTableAlias() {
        return alias;
    }

    public String getTableName() {
        return tableName;
    }

    public String getQualifiedColumnName() {
        return alias.getAlias() + "." + columnName;
    }

    public String getTableNameAndAlias() {
        return alias.getTableNameAndAlias();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy