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> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
String
getAlias()
Gets alias.TableMetadata
getMetadata()
Gets metadata.String
getName()
Gets name.SqlNodeType
getType()
Gets type.boolean
hasAlias()
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: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
-
-