org.eclipse.birt.data.engine.api
Interface IBaseQueryDefinition

All Superinterfaces:
IBaseTransform
All Known Subinterfaces:
IQueryDefinition, ISubqueryDefinition
All Known Implementing Classes:
BaseQueryDefinition, QueryDefinition, SubqueryDefinition

public interface IBaseQueryDefinition
extends IBaseTransform

/** Represents attributes common to a data engine query and a subquery.


Method Summary
 java.util.List getGroups()
          Returns the group definitions as an ordered collection of IGroupDefinition objects.
 int getMaxRows()
          Gets the maximum number of detail rows that can be retrieved by this query
 IBaseQueryDefinition getParentQuery()
          Returns the parent query.
 boolean usesDetails()
          Indicates if the report will use the detail rows.
 
Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseTransform
getAfterExpressions, getBeforeExpressions, getFilters, getRowExpressions, getSorts, getSubqueries
 

Method Detail

getGroups

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

Returns:
the list of groups. If no group is defined, null is returned.

usesDetails

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

Returns:
true if the detail rows are used, false if not used

getParentQuery

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


getMaxRows

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

Returns:
Maximum number of rows. If 0, there is no limit on how many rows this query can retrieve.


Copyright © 2005 Actuate Corp. All rights reserved.