Bug 178476 Clear cache dosen't take effact[07]
Description: Clear cache dosen't take effact[07] Build number: 2.2.0.v20070321-0630 Steps to reproduce: 1, New a dataset 2, Set the Cache preference to: 20 rows 3, Drag the dataset into layout and preview the results 4, Go back to dataset, clear the cache and change the preference to 30 rows 5, Save the report and preview the report Expected result: After step5: 30rows of data in preview results Actual result: only 20 rows of data in preview results Error log:
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/impl/ModelOdaAdapter.java
}
		if ( setDesign.getParameters( ) == null )
		{
			setDesign.setParameters( new DataSetParameterAdapter( )
					.newOdaDataSetParams( setHandle.parametersIterator( ),
							designerValues == null ? null : designerValues
									.getDataSetParameters( ), setDesign ) );
		}
		setDesign.setPrimaryResultSet( new ResultSetsAdapter( )
				.newOdaResultSetDefinition( setHandle ) );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.adapter.oda.IModelOdaAdapter#updateDataSetDesign(org.eclipse.birt.report.model.api.OdaDataSetHandle,
	 *      org.eclipse.datatools.connectivity.oda.design.DataSetDesign,
	 *      java.lang.String)
	 */
	public void updateDataSetDesign( OdaDataSetHandle setHandle,
			DataSetDesign setDesign, String propertyName )
	{
		if ( setHandle == null || setDesign == null || propertyName == null )
			return;
		
		if ( OdaDataSetHandle.NAME_PROP.equalsIgnoreCase( propertyName ) )
			setDesign.setName( setHandle.getName( ) );
		else if ( OdaDataSetHandle.DISPLAY_NAME_PROP
				.equalsIgnoreCase( propertyName ) )
			setDesign.setDisplayName( setHandle.getDisplayName( ) );