Package org.teiid.language
Class ColumnReference
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.ColumnReference
-
- All Implemented Interfaces:
Expression
,LanguageObject
,MetadataReference<Column>
public class ColumnReference extends BaseLanguageObject implements MetadataReference<Column>, Expression
Represents an element in the language. An example of an element would be a column reference in a SELECT clause.
-
-
Constructor Summary
Constructors Constructor Description ColumnReference(NamedTable group, String name, Column metadataObject, Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageObjectVisitor visitor)
Column
getMetadataObject()
String
getName()
Gets the name of the element.NamedTable
getTable()
Return the table that contains this column.Class<?>
getType()
Determine the type returned by this expression.void
setMetadataObject(Column metadataObject)
void
setName(String name)
Sets the name of the element.void
setTable(NamedTable group)
void
setType(Class<?> type)
-
Methods inherited from class org.teiid.language.BaseLanguageObject
toString
-
-
-
-
Constructor Detail
-
ColumnReference
public ColumnReference(NamedTable group, String name, Column metadataObject, Class<?> type)
-
-
Method Detail
-
getName
public String getName()
Gets the name of the element.- Returns:
- the name of the element
-
getTable
public NamedTable getTable()
Return the table that contains this column. May be null.- Returns:
- The group reference
-
getMetadataObject
public Column getMetadataObject()
- Specified by:
getMetadataObject
in interfaceMetadataReference<Column>
-
setMetadataObject
public void setMetadataObject(Column metadataObject)
-
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interfaceLanguageObject
-
setTable
public void setTable(NamedTable group)
-
getType
public Class<?> getType()
Description copied from interface:Expression
Determine the type returned by this expression.- Specified by:
getType
in interfaceExpression
- Returns:
- The type, as defined by a Java class
-
setName
public void setName(String name)
Sets the name of the element.- Parameters:
name
- The name of the element
-
setType
public void setType(Class<?> type)
-
-