public class InlineQuery extends Object implements TableLike
FROM or JOIN clauses.
Renders to: (>SELECT<) AS >ALIAS< in a from or join clause, and to >ALIAS< when
used in an expression.
Note that this does not implement Aliased because the Alias is not optional but required and therefore more
like a name although the SQL term is "alias".
| Modifier and Type | Method and Description |
|---|---|
static InlineQuery |
create(Select select,
SqlIdentifier alias)
Creates a new
InlineQuery using an alias. |
static InlineQuery |
create(Select select,
String alias)
Creates a new
InlineQuery using an alias. |
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)
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasterisk, column, column, columns, columns, columnspublic static InlineQuery create(Select select, SqlIdentifier alias)
InlineQuery using an alias.select - must not be null.alias - must not be null or empty.InlineQuery using the alias.public static InlineQuery create(Select select, String alias)
InlineQuery using an alias.select - must not be null or empty.alias - must not be null or empty.InlineQuery using the alias.public SqlIdentifier getName()
public SqlIdentifier getReferenceName()
getReferenceName in interface TableLikename or an
alias.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 assume 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–2023 Pivotal Software, Inc.. All rights reserved.