Bug 131011 Support running query based on report document data
Data Engine should support running a query based on data set and expression data stored in a report document. This bugzilla entry serves as a repository for design docs and notes related to this feature.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/QueryExecutor.java
computedColumns = this.dataSet.getComputedColumns( );
			if ( computedColumns == null )
				computedColumns = new ArrayList();
			if ( computedColumns.size() > 0 || temporaryComputedColumns.size( ) > 0 )
			{
				IResultObjectEvent objectEvent = new ComputedColumnHelper( this.dataSet, computedColumns, temporaryComputedColumns);
				odiQuery.addOnFetchEvent( objectEvent );
				this.dataSet.getComputedColumns().addAll(temporaryComputedColumns);
			}
	    	if ( dataSet.getEventHandler() != null )
	    	{
	    		OnFetchScriptHelper event = new OnFetchScriptHelper( dataSet ); 
	    		odiQuery.addOnFetchEvent( event );
		    }
	    	
		    if ( dataSetFilters.size( ) + queryFilters.size( ) + multipassFilters.size() > 0 )
		    {
		    	IResultObjectEvent objectEvent = new FilterByRow( dataSetFilters, queryFilters, multipassFilters,
		    			dataSet );
		    	odiQuery.addOnFetchEvent( objectEvent );
		    }
		    
			
		    odiQuery.setMaxRows( this.baseQueryDefn.getMaxRows() );
		}
		finally
		{
			Context.exit();
		}