Package com.exasol.adapter.sql
Class SqlTable
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlTable
-
public class SqlTable extends SqlNode
This class represents a SQL table.
-
-
Constructor Summary
Constructors Constructor Description SqlTable(String name, TableMetadata metadata)Instantiates a new Sql table.SqlTable(String name, String alias, TableMetadata metadata)Instantiates a new Sql table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorStringgetAlias()Gets alias.TableMetadatagetMetadata()Gets metadata.StringgetName()Gets name.SqlNodeTypegetType()Gets type.booleanhasAlias()Has alias boolean.
-
-
-
Constructor Detail
-
SqlTable
public SqlTable(String name, TableMetadata metadata)
Instantiates a new Sql table.- Parameters:
name- the namemetadata- the metadata
-
SqlTable
public SqlTable(String name, String alias, TableMetadata metadata)
Instantiates a new Sql table.- Parameters:
name- the namealias- the aliasmetadata- the metadata
-
-
Method Detail
-
hasAlias
public boolean hasAlias()
Has alias boolean.- Returns:
- the boolean
-
getName
public String getName()
Gets name.- Returns:
- the name
-
getAlias
public String getAlias()
Gets alias.- Returns:
- the alias
-
getMetadata
public TableMetadata getMetadata()
Gets metadata.- Returns:
- the metadata
-
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
-
-