public final class FromClauseElement extends DataObject
DataObject
that contains a Query
and is an element of a FromClause
. You use the getQuery
method of an MdmTable
to get the Query
for a FromClauseElement
.Constructor and Description |
---|
FromClauseElement(Query query)
Creates a
FromClauseElement that has the specified Query . |
FromClauseElement(Query query, java.lang.String alias)
Creates a
FromClauseElement that has the specified Query and alias. |
FromClauseElement(Query query, java.lang.String alias, boolean hasAS)
Creates a
FromClauseElement that has the specified Query and alias and that specifies whether or not to insert the string AS between the syntax of the Query and the alias. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Gets the alias for the
Query of the FromClauseElement . |
boolean |
getHasAS()
Indicates whether or not this
FromClauseElement includes an AS between the Query syntax and the alias. |
Query |
getQuery()
Gets the
Query of the FromClauseElement . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitFromClauseElement method of the SyntaxObjectVisitor and passes that method this FromClauseElement and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public FromClauseElement(Query query, java.lang.String alias, boolean hasAS)
FromClauseElement
that has the specified Query
and alias and that specifies whether or not to insert the string AS
between the syntax of the Query
and the alias.query
- A Query
for the element.alias
- An String
that contains an optional alias for the Query
.hasAS
- A boolean
that is true
to include an AS
between the Query
syntax and the alias or false
to not include it.public FromClauseElement(Query query, java.lang.String alias)
FromClauseElement
that has the specified Query
and alias.query
- A Query
for the element.alias
- An String
that contains an optional alias for the Query
.public FromClauseElement(Query query)
FromClauseElement
that has the specified Query
.query
- A Query
for the element.public java.lang.String getAlias()
Query
of the FromClauseElement
.String
that contains the alias for the Query
of the FromClauseElement
.public Query getQuery()
Query
of the FromClauseElement
.Query
of the FromClauseElement
.public boolean getHasAS()
FromClauseElement
includes an AS
between the Query
syntax and the alias.boolean
that is true
if this FromClauseElement
includes an AS
between the Query
syntax and the alias or false
if it does not.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitFromClauseElement
method of the SyntaxObjectVisitor
and passes that method this FromClauseElement
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitFromClause
method.