Package org.teiid.language
Class QueryExpression
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.QueryExpression
-
- All Implemented Interfaces:
Command,InsertValueSource,LanguageObject
public abstract class QueryExpression extends BaseLanguageObject implements Command, InsertValueSource
-
-
Constructor Summary
Constructors Constructor Description QueryExpression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String[]getColumnNames()Get the derived column names.Class<?>[]getColumnTypes()Get the column types of the output columns for this queryLimitgetLimit()Get LIMIT clause, may be null.OrderBygetOrderBy()Get ORDER BY clause, may be null.abstract SelectgetProjectedQuery()WithgetWith()voidsetLimit(Limit limit)Set LIMIT clause, may be null.voidsetOrderBy(OrderBy orderBy)Set ORDER BY clause, may be null.voidsetWith(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
-
-
-
-
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)
-
-