org.eclipse.birt.data.engine.api.querydefn
Class BaseQueryDefinition

java.lang.Object
  extended byorg.eclipse.birt.data.engine.api.querydefn.BaseTransform
      extended byorg.eclipse.birt.data.engine.api.querydefn.BaseQueryDefinition
All Implemented Interfaces:
IBaseQueryDefinition, IBaseTransform
Direct Known Subclasses:
QueryDefinition, SubqueryDefinition

public abstract class BaseQueryDefinition
extends BaseTransform
implements IBaseQueryDefinition

Default implementation of the IBaseQueryDefinition interface.


Field Summary
protected  java.util.List groups
           
protected  boolean hasDetail
           
protected  int maxRowCount
           
protected  BaseQueryDefinition parentQuery
           
 
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
 
Method Summary
 void addGroup(GroupDefinition group)
          Appends a group definition to the group list.
 java.util.List getGroups()
          Returns the group definitions as an ordered collection of GroupDefinition objects.
 int getMaxRows()
          Gets the maximum number of detail rows that can be retrieved by this report query
 IBaseQueryDefinition getParentQuery()
          Returns the parent query.
 void setMaxRows(int maxRows)
          Sets the maximum number of detail rows that can be retrieved by this report query
 void setUsesDetails(boolean usesDetails)
           
 boolean usesDetails()
          Indicates if the report will use the detail rows.
 
Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseTransform
addExpression, addFilter, addSort, addSubquery, getAfterExpressions, getBeforeExpressions, getFilters, getRowExpressions, 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.IBaseTransform
getAfterExpressions, getBeforeExpressions, getFilters, getRowExpressions, getSorts, getSubqueries
 

Field Detail

groups

protected java.util.List groups

hasDetail

protected boolean hasDetail

parentQuery

protected BaseQueryDefinition parentQuery

maxRowCount

protected int maxRowCount
Method Detail

getGroups

public java.util.List getGroups()
Returns the group definitions as an ordered collection of GroupDefinition objects. Groups are organizations within the data that support aggregation, filtering and sorting. Reports use groups to trigger level breaks.

Specified by:
getGroups in interface IBaseQueryDefinition
Returns:
the list of groups. If no group is defined, null is returned.

addGroup

public void addGroup(GroupDefinition group)
Appends a group definition to the group list.

Parameters:
group - Group definition to add

usesDetails

public boolean usesDetails()
Indicates if the report will use the detail rows. Allows the data transform engine to optimize the query if the details are not used.

Specified by:
usesDetails in interface IBaseQueryDefinition
Returns:
true if the detail rows are used, false if not used

setUsesDetails

public void setUsesDetails(boolean usesDetails)
Parameters:
usesDetails - Whether detail rows are used in this query

getParentQuery

public IBaseQueryDefinition getParentQuery()
Returns the parent query. The parent query is the outer query which encloses this query

Specified by:
getParentQuery in interface IBaseQueryDefinition

getMaxRows

public int getMaxRows()
Gets the maximum number of detail rows that can be retrieved by this report query

Specified by:
getMaxRows in interface IBaseQueryDefinition
Returns:
Maximum number of rows. If 0, there is no limit on how many rows this query can retrieve.

setMaxRows

public void setMaxRows(int maxRows)
Sets the maximum number of detail rows that can be retrieved by this report query



Copyright © 2005 Actuate Corp. All rights reserved.