private void updateParameterDesign ( IParameterMetaData paramMd , DataSetDesign dataSetDesign ) throws OdaException { DataSetParameters paramDesign = DesignSessionUtil . toDataSetParametersDesign ( paramMd , DesignSessionUtil . toParameterModeDesign ( IParameterMetaData . parameterModeIn ) ) ; // no exception in conversion; go ahead and assign to specified dataSetDesign dataSetDesign . setParameters ( paramDesign ) ; if ( paramDesign == null ) return ; // no parameter definitions; done with update paramDesign . setDerivedMetaData ( true ) ; // TODO replace below with data source specific implementation; // hard-coded parameter's default value for demo purpose /* if( paramDesign.getParameterDefinitions().size() > 0 ) { ParameterDefinition paramDef = (ParameterDefinition) paramDesign.getParameterDefinitions().get( 0 ); if( paramDef != null ) paramDef.setDefaultScalarValue( "dummy default value" ); } */ }
Updates the specified data set design s parameter definition based on the specified runtime metadata .