Code Search for Developers
 
 
  

IQueryDefinition.java from BIRT at Krugle


Show IQueryDefinition.java syntax highlighted

/*
 *************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 */ 
package org.eclipse.birt.data.engine.api;

import java.util.Collection;

/**
 * Defines a data engine query: a set of data transforms that provides data for
 * a list-like element in the report. 
 * The data engine query encapsulates three types of information:<br>
 * 
 * 1. A data set, including computed columns together with the parameter bindings. <br>
 * 2. Data transforms that are defined on report items, i.e., sorting, filtering, 
 * grouping, aggregation functions, and so on. <br>
 * 3. Subqueries that are contained in the current report query.<br> 
 *
 */
public interface IQueryDefinition extends IBaseQueryDefinition
{
	/**
	 * Gets the name of the data set used by this query
	 */
	public String getDataSetName( );
	
	/**
	 * 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.
	 * 
	 * @return associated queryResultID in query on report document
	 */
	public String getQueryResultsID( );
	
	/**
	 * 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.
	 * 
	 * For example, there is one column, COUNTRY. When this flag is false, if
	 * user wants to get the value of COUNTRY, user first needs to add a binding
	 * like <COUNTRY, dataSetRow.COUNTRY>, and then user can get the value by
	 * the name of COUNTRY. But if this flag is set, user does not need to add
	 * the binding, and then user can get the value directly.
	 * 
	 * Currently only when there is data set defined, this flag will have
	 * effect.
	 * 
	 * @return true, auto binding needs to be supported. false, auto binding is
	 *         not supported, this is default behavior.
	 */
	public boolean needAutoBinding( ); 
	
	/**
	 * Returns the set of input parameter bindings as an unordered collection
	 * of {@link org.eclipse.birt.data.engine.api.IInputParameterBinding} objects.
	 * 
	 * @return the input parameter bindings. If no binding is defined, null is returned.
	 */
	public Collection getInputParamBindings( );
		
	/**
	 * Provides a column projection hint to the data engine. The caller informs the data engine that only
	 * a selected list of columns defined by the data set are used by this report query. The names of 
	 * those columns (the "projected columns") are passed in as an array of string. <br>
	 * If a column projection is set, runtime error may occur if the report query uses columns 
	 * that are not defined in the projected column list. 
	 */
	public String[] getColumnProjection();
}




See more files for this project here

BIRT

BIRT is an open source, Eclipse-based reporting system that integrates with your application to produce compelling reports for both web and PDF.

Project homepage: http://www.eclipse.org/birt/phoenix/
Programming language(s): Java,XML
License: gpl2

  aggregation/
    Accumulator.java
    Aggregation.java
    IAggregation.java
    package.html
  querydefn/
    BaseDataSetDesign.java
    BaseDataSourceDesign.java
    BaseExpression.java
    BaseQueryDefinition.java
    BaseTransform.java
    ColumnDefinition.java
    ComputedColumn.java
    ConditionalExpression.java
    FilterDefinition.java
    GroupDefinition.java
    InputParameterBinding.java
    JoinCondition.java
    JointDataSetDesign.java
    OdaDataSetDesign.java
    OdaDataSourceDesign.java
    ParameterDefinition.java
    QueryDefinition.java
    ScriptDataSetDesign.java
    ScriptDataSourceDesign.java
    ScriptExpression.java
    SortDefinition.java
    SubqueryDefinition.java
    package.html
  script/
    IBaseDataSetEventHandler.java
    IBaseDataSourceEventHandler.java
    IDataRow.java
    IDataSetInstanceHandle.java
    IDataSourceInstanceHandle.java
    IJavascriptContext.java
    IScriptDataSetEventHandler.java
    IScriptDataSetMetaDataDefinition.java
    IScriptDataSourceEventHandler.java
    package.html
  DataEngine.java
  DataEngineContext.java
  IBaseDataSetDesign.java
  IBaseDataSourceDesign.java
  IBaseExpression.java
  IBaseQueryDefinition.java
  IBaseTransform.java
  IColumnDefinition.java
  IComputedColumn.java
  IConditionalExpression.java
  IDataEngineFactory.java
  IFilterDefinition.java
  IGroupDefinition.java
  IInputParameterBinding.java
  IJoinCondition.java
  IJointDataSetDesign.java
  IOdaDataSetDesign.java
  IOdaDataSourceDesign.java
  IParameterDefinition.java
  IParameterMetaData.java
  IPreparedQuery.java
  IQueryDefinition.java
  IQueryResults.java
  IResultIterator.java
  IResultMetaData.java
  IScriptDataSetDesign.java
  IScriptDataSourceDesign.java
  IScriptExpression.java
  ISortDefinition.java
  ISubqueryDefinition.java
  package.html