org.teiid.language
Class QueryExpression

java.lang.Object
  extended by org.teiid.language.BaseLanguageObject
      extended by org.teiid.language.QueryExpression
All Implemented Interfaces:
Command, InsertValueSource, LanguageObject
Direct Known Subclasses:
Select, SetQuery

public abstract class QueryExpression
extends BaseLanguageObject
implements Command, InsertValueSource


Constructor Summary
QueryExpression()
           
 
Method Summary
 String[] getColumnNames()
          Get the derived column names.
 Class<?>[] getColumnTypes()
          Get the column types of the output columns for this query
 Limit getLimit()
          Get LIMIT clause, may be null.
 OrderBy getOrderBy()
          Get ORDER BY clause, may be null.
abstract  Select getProjectedQuery()
           
 With getWith()
           
 void setLimit(Limit limit)
          Set LIMIT clause, may be null.
 void setOrderBy(OrderBy orderBy)
          Set ORDER BY clause, may be null.
 void setWith(With with)
           
 
Methods inherited from class org.teiid.language.BaseLanguageObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.teiid.language.LanguageObject
acceptVisitor
 

Constructor Detail

QueryExpression

public QueryExpression()
Method Detail

getProjectedQuery

public abstract Select getProjectedQuery()

getOrderBy

public OrderBy getOrderBy()
Get ORDER BY clause, may be null.

Returns:
An ORDER BY object

getLimit

public Limit getLimit()
Get LIMIT clause, may be null.

Returns:
A LIMIT object

getColumnNames

public String[] getColumnNames()
Get the derived column names. Note this only reports alias names. Any other names may not be consistent throughout the translation process.

Returns:
a String[] containing the column names
Since:
4.3

getColumnTypes

public Class<?>[] getColumnTypes()
Get the column types of the output columns for this query

Returns:
a Class[] containing the column names
Since:
4.3

setOrderBy

public void setOrderBy(OrderBy orderBy)
Set ORDER BY clause, may be null.

Parameters:
orderBy - An ORDER BY object

setLimit

public void setLimit(Limit limit)
Set LIMIT clause, may be null.

Parameters:
limit - A LIMIT object

getWith

public With getWith()

setWith

public void setWith(With with)


Copyright © 2012. All Rights Reserved.