001package gudusoft.gsqlparser.sqlenv;
002
003
004/**
005 * table function return column
006 */
007public class TFunctoinColumn extends TSQLObject {
008
009    private TSQLFunction sqlTableFunction;
010
011    /**
012     * function include this column
013     * @return function
014     */
015    public TSQLFunction getSqlTableFunction() {
016        return sqlTableFunction;
017    }
018
019    /**
020     * create a new column and add to the function
021     *
022     * @param sqlFunction function this column belongs to
023     * @param columnName column name
024     */
025    public TFunctoinColumn(TSQLFunction sqlFunction, String columnName) {
026        super(sqlFunction.getSqlEnv(), columnName, ESQLDataObjectType.dotColumn);
027        this.sqlTableFunction = sqlFunction;
028    }
029
030}