Package org.teiid.query.sql.lang
Class UnaryFromClause
- java.lang.Object
-
- org.teiid.query.sql.lang.FromClause
-
- org.teiid.query.sql.lang.UnaryFromClause
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
public class UnaryFromClause extends FromClause
A FROM subpart that represents a single group. For example, the FROM clause: "FROM a, b" will have two UnaryFromClause objects, each holding a reference to a GroupSymbol (for a and b).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Field Summary
-
Fields inherited from class org.teiid.query.sql.lang.FromClause
PRESERVE
-
-
Constructor Summary
Constructors Constructor Description UnaryFromClause()
Construct default objectUnaryFromClause(GroupSymbol group)
Construct object with specified group
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.FromClause
cloneDirect()
Get deep clone of objectvoid
collectGroups(Collection<GroupSymbol> groups)
Collect all GroupSymbols for this from clause.boolean
equals(Object obj)
Check whether objects are equalCommand
getExpandedCommand()
GroupSymbol
getGroup()
Get group held by clauseint
hashCode()
Get hash code of objectvoid
setExpandedCommand(Command expandedCommand)
void
setGroup(GroupSymbol group)
Set the group held by the clause-
Methods inherited from class org.teiid.query.sql.lang.FromClause
clone, getMakeDep, getMakeInd, hasHint, isMakeDep, isMakeNotDep, isNoUnnest, isOptional, isPreserve, setMakeDep, setMakeDep, setMakeInd, setMakeNotDep, setNoUnnest, setOptional, setPreserve, toString
-
-
-
-
Constructor Detail
-
UnaryFromClause
public UnaryFromClause()
Construct default object
-
UnaryFromClause
public UnaryFromClause(GroupSymbol group)
Construct object with specified group- Parameters:
group
- Group being held
-
-
Method Detail
-
setGroup
public void setGroup(GroupSymbol group)
Set the group held by the clause- Parameters:
group
- Group to hold
-
getGroup
public GroupSymbol getGroup()
Get group held by clause- Returns:
- Group held by clause
-
collectGroups
public void collectGroups(Collection<GroupSymbol> groups)
Collect all GroupSymbols for this from clause.- Specified by:
collectGroups
in classFromClause
- Parameters:
groups
- Groups to add to
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitor
in interfaceLanguageObject
- Specified by:
acceptVisitor
in classFromClause
- Parameters:
visitor
- Visitor being used
-
equals
public boolean equals(Object obj)
Check whether objects are equal- Overrides:
equals
in classFromClause
- Parameters:
obj
- Other object- Returns:
- True if equal
-
hashCode
public int hashCode()
Get hash code of object
-
cloneDirect
public FromClause cloneDirect()
Get deep clone of object- Specified by:
cloneDirect
in classFromClause
- Returns:
- Deep copy of the object
-
getExpandedCommand
public Command getExpandedCommand()
- Returns:
- Returns the expandedCommand.
-
setExpandedCommand
public void setExpandedCommand(Command expandedCommand)
- Parameters:
expandedCommand
- The expandedCommand to set.
-
-