| Modifier and Type | Method and Description |
|---|---|
static Table |
aliased(String name,
String alias)
Creates a new
Table using an alias. |
Table |
as(SqlIdentifier alias)
Creates a new
Table aliased to alias. |
Table |
as(String alias)
Creates a new
Table aliased to alias. |
AsteriskFromTable |
asterisk()
Creates a
AsteriskFromTable maker selecting all columns from this Table (e.g. |
Column |
column(SqlIdentifier name)
|
Column |
column(String name)
|
List<Column> |
columns(Collection<String> names)
|
List<Column> |
columns(SqlIdentifier... names)
|
List<Column> |
columns(String... names)
|
static Table |
create(SqlIdentifier name)
Creates a new
Table given name. |
static Table |
create(String name)
Creates a new
Table given name. |
boolean |
equals(Object obj)
|
SqlIdentifier |
getName() |
SqlIdentifier |
getReferenceName() |
int |
hashCode()
Generate a hash code from this
Segment. |
String |
toString()
Return a SQL string representation of this
Segment. |
void |
visit(Visitor visitor)
|
public static Table create(String name)
Table given name.name - must not be null or empty.Table.public static Table create(SqlIdentifier name)
Table given name.name - must not be null or empty.Table.public static Table aliased(String name, String alias)
Table using an alias.name - must not be null or empty.alias - must not be null or empty.Table using the alias.public Table as(String alias)
Table aliased to alias.alias - must not be null or empty.Table using the alias.public Table as(SqlIdentifier alias)
Table aliased to alias.alias - must not be null or empty.Table using the alias.public Column column(SqlIdentifier name)
public List<Column> columns(SqlIdentifier... names)
public List<Column> columns(Collection<String> names)
public AsteriskFromTable asterisk()
Table.public SqlIdentifier getName()
public SqlIdentifier getReferenceName()
public String toString()
SegmentSegment.
The representation is intended for debugging purposes and an approximation to the generated SQL. While it might
work in the context of a specific dialect, you should not that the Segment.toString() representation works across
multiple databases.public int hashCode()
SegmentSegment.
Hashcode typically derives from the Segment.toString() representation so two Segments yield the same
Segment.hashCode() if their Segment.toString() representation matches.public boolean equals(Object obj)
SegmentSegment is equal to another Segment.
Equality is typically given if the Segment.toString() representation matches.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.