com.metamatrix.query.sql.lang
Class UnaryFromClause

java.lang.Object
  extended by com.metamatrix.query.sql.lang.FromClause
      extended by com.metamatrix.query.sql.lang.UnaryFromClause
All Implemented Interfaces:
LanguageObject, java.io.Serializable, java.lang.Cloneable

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).

See Also:
Serialized Form

Constructor Summary
UnaryFromClause()
          Construct default object
UnaryFromClause(GroupSymbol group)
          Construct object with specified group
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 java.lang.Object clone()
          Get deep clone of object
 void collectGroups(java.util.Collection groups)
          Collect all GroupSymbols for this from clause.
 boolean equals(java.lang.Object obj)
          Check whether objects are equal
 Command getExpandedCommand()
           
 GroupSymbol getGroup()
          Get group held by clause
 int hashCode()
          Get hash code of object
 void setExpandedCommand(Command expandedCommand)
           
 void setGroup(GroupSymbol group)
          Set the group held by the clause
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 
Methods inherited from class com.metamatrix.query.sql.lang.FromClause
hasHint, isMakeDep, isMakeNotDep, isOptional, setMakeDep, setMakeNotDep, setOptional
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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(java.util.Collection groups)
Collect all GroupSymbols for this from clause.

Specified by:
collectGroups in class FromClause
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 interface LanguageObject
Specified by:
acceptVisitor in class FromClause
Parameters:
visitor - Visitor being used

equals

public boolean equals(java.lang.Object obj)
Check whether objects are equal

Overrides:
equals in class FromClause
Parameters:
obj - Other object
Returns:
True if equal

hashCode

public int hashCode()
Get hash code of object

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code

clone

public java.lang.Object clone()
Get deep clone of object

Specified by:
clone in interface LanguageObject
Specified by:
clone in class FromClause
Returns:
Deep copy of the object

toString

public java.lang.String toString()
Returns a string representation of an instance of this class.

Overrides:
toString in class java.lang.Object
Returns:
String representation of object

getExpandedCommand

public Command getExpandedCommand()
Returns:
Returns the expandedCommand.

setExpandedCommand

public void setExpandedCommand(Command expandedCommand)
Parameters:
expandedCommand - The expandedCommand to set.


Copyright © 2009. All Rights Reserved.