Bug 324070 Refactor data set editor pages' codes[30967]
Build Identifier: 20100828 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
throws BirtException
	{
		return prepareQuery( dataSet ).getParameterMetaData( );
	}
	/**
	 * 
	 * @param dataSet
	 * @return
	 * @throws BirtException
	 */
	public IPreparedQuery prepareQuery( DataSetHandle dataSet )
			throws BirtException
	{
		DataRequestSession session = getDataRequestSession( dataSet );
		IBaseDataSetDesign dataSetDesign = getDataSetDesign( dataSet,
				true,
				true );
		QueryDefinition queryDefn = getQueryDefinition( dataSetDesign, -1 );
		return session.prepare( queryDefn, null );
	}
	/**
	 * 
	 * @param dataSet
	 * @return
	 * @throws BirtException
	 */
	public IPreparedQuery prepareQuery( DataSetHandle dataSet,
			IQueryDefinition query ) throws BirtException
	{
		DataRequestSession session = getDataRequestSession( dataSet );