|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.symbol.Symbol
com.metamatrix.query.sql.symbol.GroupSymbol
public class GroupSymbol
This is the server's representation of a metadata group symbol. The group symbol has a name, an optional definition, and a reference to a real metadata ID. Typically, a GroupSymbol will be created only from a name and possibly a definition if the group has an alias. The metadata ID is discovered only when resolving the query.
For example, if the original string contained a FROM clause such as "FROM Group1 AS G, Group2", there would be two GroupSymbols created. The first would have name=G, definition=Group1 and the second would have name=Group2, definition=null.
Field Summary | |
---|---|
static java.lang.String |
TEMP_GROUP_PREFIX
|
Constructor Summary | |
---|---|
|
GroupSymbol(java.lang.String name)
Construct a symbol with a name. |
|
GroupSymbol(java.lang.String name,
java.lang.String definition)
Construct a symbol with a name. |
protected |
GroupSymbol(java.lang.String name,
java.lang.String canonicalName,
java.lang.String definition)
Cloning constructor |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Return a deep copy of this object. |
int |
compareTo(java.lang.Object other)
Compare two groups and give an ordering. |
boolean |
equals(java.lang.Object obj)
Compare group symbols |
java.lang.String |
getDefinition()
Get the definition for the group symbol, which may be null |
java.lang.Object |
getMetadataID()
Get the metadata ID that this group symbol resolves to. |
java.lang.String |
getNonCorrelationName()
|
java.lang.String |
getOutputDefinition()
|
boolean |
hasAlias()
|
boolean |
isImplicitTempGroupSymbol()
|
boolean |
isProcedure()
|
boolean |
isResolved()
Returns true if this symbol has been completely resolved with respect to actual runtime metadata. |
static boolean |
isTempGroupName(java.lang.String name)
|
boolean |
isTempGroupSymbol()
Returns true if this is a symbol for a temporary group (i.e. |
boolean |
isTempTable()
|
void |
setDefinition(java.lang.String definition)
Set the definition for the group symbol, which may be null |
void |
setIsTempTable(boolean isTempTable)
|
void |
setMetadataID(java.lang.Object metadataID)
Set the metadata ID that this group symbol resolves to. |
void |
setOutputDefinition(java.lang.String outputDefinition)
|
void |
setProcedure(boolean isProcedure)
|
Methods inherited from class com.metamatrix.query.sql.symbol.Symbol |
---|
getCanonical, getCanonicalName, getName, getOutputName, hashCode, setName, setOutputName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMP_GROUP_PREFIX
Constructor Detail |
---|
protected GroupSymbol(java.lang.String name, java.lang.String canonicalName, java.lang.String definition)
name
- canonicalName
- definition
- public GroupSymbol(java.lang.String name)
name
- Name of the symbol
java.lang.IllegalArgumentException
- If name is nullpublic GroupSymbol(java.lang.String name, java.lang.String definition)
name
- Name of the symbolname
- Definition of the symbol, may be null
java.lang.IllegalArgumentException
- If name is nullMethod Detail |
---|
public java.lang.String getNonCorrelationName()
public java.lang.String getDefinition()
public void setDefinition(java.lang.String definition)
definition
- Definitionpublic java.lang.Object getMetadataID()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic void setMetadataID(java.lang.Object metadataID)
meatdataID
- Metadata ID object
java.lang.IllegalArgumentException
- If metadataID is nullpublic boolean isResolved()
isResolved
in class Symbol
public boolean isTempGroupSymbol()
public boolean isImplicitTempGroupSymbol()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- Other group
public java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Symbol
public boolean equals(java.lang.Object obj)
equals
in class Symbol
obj
- Other object to compare
public boolean hasAlias()
public void setIsTempTable(boolean isTempTable)
public static boolean isTempGroupName(java.lang.String name)
public boolean isTempTable()
public boolean isProcedure()
public void setProcedure(boolean isProcedure)
public java.lang.String getOutputDefinition()
public void setOutputDefinition(java.lang.String outputDefinition)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |