com.metamatrix.query.sql.symbol
Class SingleElementSymbol

java.lang.Object
  extended by com.metamatrix.query.sql.symbol.Symbol
      extended by com.metamatrix.query.sql.symbol.SelectSymbol
          extended by com.metamatrix.query.sql.symbol.SingleElementSymbol
All Implemented Interfaces:
LanguageObject, Expression, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AliasSymbol, ElementSymbol, ExpressionSymbol

public abstract class SingleElementSymbol
extends SelectSymbol
implements Expression

This is a subclass of Symbol representing a single output column.

See Also:
Serialized Form

Field Summary
static java.lang.String SEPARATOR
          Character used to delimit name components in a symbol
 
Constructor Summary
  SingleElementSymbol(java.lang.String name)
          Construct a symbol with a name
protected SingleElementSymbol(java.lang.String name, java.lang.String canonicalName)
          Passthrough constructor used for cloning
 
Method Summary
 java.lang.String getShortCanonicalName()
          Get the short name of the element
 java.lang.String getShortName()
          Get the short name of the element
static java.lang.String getShortName(java.lang.String name)
           
 
Methods inherited from class com.metamatrix.query.sql.symbol.Symbol
clone, equals, getCanonical, getCanonicalName, getName, getOutputName, hashCode, isResolved, setName, setOutputName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.query.sql.symbol.Expression
getType, isResolved
 
Methods inherited from interface com.metamatrix.query.sql.LanguageObject
acceptVisitor, clone
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
Character used to delimit name components in a symbol

See Also:
Constant Field Values
Constructor Detail

SingleElementSymbol

protected SingleElementSymbol(java.lang.String name,
                              java.lang.String canonicalName)
Passthrough constructor used for cloning

Parameters:
name -
canonicalName -
hashcode -
Since:
4.3

SingleElementSymbol

public SingleElementSymbol(java.lang.String name)
Construct a symbol with a name

Parameters:
name - Name of symbol
Method Detail

getShortName

public java.lang.String getShortName()
Get the short name of the element

Returns:
Short name of the symbol (un-dotted)

getShortName

public static java.lang.String getShortName(java.lang.String name)

getShortCanonicalName

public java.lang.String getShortCanonicalName()
Get the short name of the element

Returns:
Short name of the symbol (un-dotted)


Copyright © 2009. All Rights Reserved.