public class Table extends AbstractFragment
Table in an SQL Statement.root| Constructor and Description |
|---|
Table(Fragment root,
String name)
Create a new
Table with a name and an alias. |
Table(Fragment root,
String name,
String alias)
Create a new
Table with a name and an alias. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(CreateTableVisitor visitor) |
void |
accept(DropTableVisitor visitor) |
void |
accept(InsertVisitor visitor) |
void |
accept(MergeVisitor visitor) |
void |
accept(SelectVisitor visitor) |
String |
getAlias()
Get the correlation name (i.e.
|
String |
getName()
Get the name of the table
|
boolean |
hasAlias()
Check if a correlation name (i.a.
|
getRootpublic Table(Fragment root, String name)
Table with a name and an alias.root - SQL statement this table belongs toname - table namepublic String getName()
public String getAlias()
public boolean hasAlias()
true if a correlation name is presentpublic void accept(CreateTableVisitor visitor)
public void accept(DropTableVisitor visitor)
public void accept(MergeVisitor visitor)
public void accept(InsertVisitor visitor)
public void accept(SelectVisitor visitor)
Copyright © 2018–2021. All rights reserved.