Package com.exasol.adapter.sql
Class SqlColumn
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlColumn
-
public class SqlColumn extends SqlNode
A SQL column.
-
-
Constructor Summary
Constructors Constructor Description SqlColumn(int id, ColumnMetadata metadata)
Instantiates a new Sql column.SqlColumn(int id, ColumnMetadata metadata, String tableName)
Instantiates a new Sql column.SqlColumn(int id, ColumnMetadata metadata, String tableName, String tableAlias)
Instantiates a new Sql column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
int
getId()
Gets id.ColumnMetadata
getMetadata()
Gets metadata.String
getName()
Gets name.String
getTableAlias()
Gets table alias.String
getTableName()
Gets table name.SqlNodeType
getType()
Gets type.boolean
hasTableAlias()
Has table alias boolean.String
toString()
-
-
-
Constructor Detail
-
SqlColumn
public SqlColumn(int id, ColumnMetadata metadata)
Instantiates a new Sql column.- Parameters:
id
- the idmetadata
- the metadata
-
SqlColumn
public SqlColumn(int id, ColumnMetadata metadata, String tableName)
Instantiates a new Sql column.- Parameters:
id
- the idmetadata
- the metadatatableName
- the table name
-
SqlColumn
public SqlColumn(int id, ColumnMetadata metadata, String tableName, String tableAlias)
Instantiates a new Sql column.- Parameters:
id
- the idmetadata
- the metadatatableName
- the table nametableAlias
- the table alias
-
-
Method Detail
-
getId
public int getId()
Gets id.- Returns:
- the id
-
getMetadata
public ColumnMetadata getMetadata()
Gets metadata.- Returns:
- the metadata
-
getName
public String getName()
Gets name.- Returns:
- the name
-
getTableName
public String getTableName()
Gets table name.- Returns:
- the table name
-
hasTableAlias
public boolean hasTableAlias()
Has table alias boolean.- Returns:
- the boolean
-
getTableAlias
public String getTableAlias()
Gets table alias.- Returns:
- the table alias
-
getType
public SqlNodeType getType()
Description copied from class:SqlNode
Gets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNode
SeeSqlNodeVisitor
- Specified by:
accept
in classSqlNode
- Type Parameters:
R
- generic SqlNodeVisitor type- Parameters:
visitor
- The visitor object on which the appropriate visit(sqlNode) method is called- Returns:
- visited object
- Throws:
AdapterException
- can be thrown
-
-