org.teiid.connector.language
Interface ISelectSymbol

All Superinterfaces:
ILanguageObject

public interface ISelectSymbol
extends ILanguageObject

Represents an item in the SELECT clause. Typically the SELECT clause contains expressions which are optionally given an output name.


Method Summary
 IExpression getExpression()
          Get the expression referenced by this symbol.
 java.lang.String getOutputName()
          Return output column name.
 boolean hasAlias()
          Determine whether this symbol is named with an alias.
 void setAlias(boolean alias)
          Set whether this symbol is named with an alias.
 void setExpression(IExpression expression)
          Set the expression referenced by this symbol.
 void setOutputName(java.lang.String name)
          Set output column name.
 
Methods inherited from interface org.teiid.connector.language.ILanguageObject
acceptVisitor
 

Method Detail

hasAlias

boolean hasAlias()
Determine whether this symbol is named with an alias.

Returns:
True if an alias exists

getOutputName

java.lang.String getOutputName()
Return output column name. This may be the alias name, a name derived from the expression, or a default name assigned to an expression.

Returns:
Name of the output column

getExpression

IExpression getExpression()
Get the expression referenced by this symbol.

Returns:
The expression

setAlias

void setAlias(boolean alias)
Set whether this symbol is named with an alias.

Parameters:
alias - True if an alias exists

setOutputName

void setOutputName(java.lang.String name)
Set output column name. This may be the alias name, a name derived from the expression, or a default name assigned to an expression.

Parameters:
name - Name of the output column

setExpression

void setExpression(IExpression expression)
Set the expression referenced by this symbol.

Parameters:
expression - The expression


Copyright © 2009. All Rights Reserved.