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> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorintgetId()Gets id.ColumnMetadatagetMetadata()Gets metadata.StringgetName()Gets name.StringgetTableAlias()Gets table alias.StringgetTableName()Gets table name.SqlNodeTypegetType()Gets type.booleanhasTableAlias()Has table alias boolean.StringtoString()
-
-
-
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:SqlNodeGets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNodeSeeSqlNodeVisitor- Specified by:
acceptin 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
-
-