Bug 322346 Refactor data set editor pages' codes[29803]
Build Identifier: 20100810 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
}
		}
	}
	/**
	 * execute query definition
	 * 
	 * @param dataSetHandle
	 * @param dataSetDesign
	 * @param rowsToReturn
	 * @return
	 * @throws BirtException
	 */
	public IQueryResults execute( DataSetHandle dataSetHandle,
			IBaseDataSetDesign dataSetDesign, int rowsToReturn,
			ExecutionContext context, DataRequestSession session )
			throws BirtException
	{
		populateAllOutputColumns( dataSetHandle, session );
		if ( !( dataSetHandle instanceof JointDataSetHandle || dataSetHandle instanceof DerivedDataSetHandle ) )
		{
			if ( dataSetHandle.getDataSource( ) != null )
			{
				session.defineDataSource( session.getModelAdaptor( )
						.adaptDataSource( dataSetHandle.getDataSource( ) ) );
			}
			session.defineDataSet( dataSetDesign );
		}
		QueryDefinition queryDefn = getQueryDefinition( dataSetDesign,
				rowsToReturn );
		IQueryResults resultSet = executeQuery( session, queryDefn );