|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.data.engine.api.querydefn.BaseTransform
org.eclipse.birt.data.engine.api.querydefn.BaseQueryDefinition
org.eclipse.birt.data.engine.api.querydefn.QueryDefinition
public class QueryDefinition
Default implementation of the IQueryDefinition interface
| Field Summary | |
|---|---|
protected java.util.List |
bindings
|
protected java.lang.String |
dataSetName
|
protected java.lang.String[] |
projectedColumns
|
| Fields inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseQueryDefinition |
|---|
distinctValue, groups, hasDetail, maxRowCount, parentQuery, startingRow |
| Fields inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseTransform |
|---|
AFTER_LAST_ROW, afterExpressions, BEFORE_FIRST_ROW, beforeExpressions, filters, ON_EACH_ROW, rowExpressions, sorts, subqueries |
| Constructor Summary | |
|---|---|
QueryDefinition()
Constructs an empty query definition |
|
QueryDefinition(BaseQueryDefinition parent)
Constructs a query that is nested within another query. |
|
| Method Summary | |
|---|---|
void |
addInputParamBinding(InputParameterBinding binding)
Adds an input parameter binding to this report query. |
java.lang.String[] |
getColumnProjection()
Provides a column projection hint to the data engine. |
java.lang.String |
getDataSetName()
Gets the name of the data set used by this query |
java.util.Collection |
getInputParamBindings()
Returns the set of input parameter bindings as an unordered collection of InputParameterBinding objects. |
java.lang.String |
getQueryResultsID()
When this value is not null, the data set name will not be used, since it indicates query is running on the data of report document or local caching of QueryResults. |
IBaseQueryDefinition |
getSourceQuery()
Return the source query of current query. |
boolean |
needAutoBinding()
When user knows which columns are in data set and user likes to get the column value without explicitly binding a name to a data set row expression, this flag can be set as true to indicate it. |
void |
setAutoBinding(boolean autoBinding)
|
void |
setColumnProjection(java.lang.String[] projectedColumns)
Provides a column projection hint to the data engine. |
void |
setDataSetName(java.lang.String dataSetName)
|
void |
setQueryResultsID(java.lang.String queryResultsID)
|
void |
setSourceQuery(IBaseQueryDefinition sourceQuery)
|
| Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseQueryDefinition |
|---|
addBinding, addGroup, addResultSetExpression, cacheQueryResults, getBindings, getDistinctValue, getGroups, getMaxRows, getName, getParentQuery, getQueryExecutionHints, getResultSetExpressions, getStartingRow, setCacheQueryResults, setDistinctValue, setMaxRows, setName, setQueryExecutionHints, setStartingRow, setUsesDetails, usesDetails |
| Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseTransform |
|---|
addFilter, addSort, addSubquery, getFilters, getSorts, getSubqueries |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseQueryDefinition |
|---|
addBinding, cacheQueryResults, getBindings, getDistinctValue, getGroups, getMaxRows, getParentQuery, getQueryExecutionHints, getResultSetExpressions, getStartingRow, setMaxRows, usesDetails |
| Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseTransform |
|---|
getFilters, getSorts, getSubqueries |
| Methods inherited from interface org.eclipse.birt.data.engine.api.INamedObject |
|---|
getName, setName |
| Field Detail |
|---|
protected java.lang.String dataSetName
protected java.util.List bindings
protected java.lang.String[] projectedColumns
| Constructor Detail |
|---|
public QueryDefinition()
public QueryDefinition(BaseQueryDefinition parent)
parent - The outer query or subquery| Method Detail |
|---|
public java.lang.String getDataSetName()
getDataSetName in interface IQueryDefinitionpublic void setDataSetName(java.lang.String dataSetName)
dataSetName - Name of data set used by this query.public boolean needAutoBinding()
IQueryDefinition
needAutoBinding in interface IQueryDefinitionpublic void setAutoBinding(boolean autoBinding)
autoBinding - public java.lang.String getQueryResultsID()
IQueryDefinition
getQueryResultsID in interface IQueryDefinitionpublic void setQueryResultsID(java.lang.String queryResultsID)
queryResultID - public java.util.Collection getInputParamBindings()
InputParameterBinding objects.
getInputParamBindings in interface IQueryDefinitionpublic void addInputParamBinding(InputParameterBinding binding)
binding - The bindings to set.public void setColumnProjection(java.lang.String[] projectedColumns)
public java.lang.String[] getColumnProjection()
IQueryDefinition
getColumnProjection in interface IQueryDefinitionIQueryDefinition.getColumnProjection()public IBaseQueryDefinition getSourceQuery()
IQueryDefinition
getSourceQuery in interface IQueryDefinitionpublic void setSourceQuery(IBaseQueryDefinition sourceQuery)
sourceQuery -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||