ResultSetDefinition resultSetDefn = DesignFactory.eINSTANCE.createResultSetDefinition( );  resultSetDefn.setResultSetColumns( columns );  dataSetDesign.setPrimaryResultSet( resultSetDefn ); dataSetDesign.getResultSets( ).setDerivedMetaData( true );
if ( columns != null ) { ResultSetDefinition resultSetDefn = DesignFactory.eINSTANCE.createResultSetDefinition( );  resultSetDefn.setResultSetColumns( columns );  dataSetDesign.setPrimaryResultSet( resultSetDefn ); dataSetDesign.getResultSets( ).setDerivedMetaData( true ); } else { dataSetDesign.setResultSets( null ); }
    private void setResultSetMetaData( DataSetDesign dataSetDesign,			IResultSetMetaData md ) throws OdaException	{    			ResultSetColumns columns = DesignSessionUtil.toResultSetColumnsDesign( md );		ResultSetDefinition resultSetDefn = DesignFactory.eINSTANCE.createResultSetDefinition( );		// jdbc does not support result set name		resultSetDefn.setResultSetColumns( columns );		// no exception; go ahead and assign to specified dataSetDesign		dataSetDesign.setPrimaryResultSet( resultSetDefn );		dataSetDesign.getResultSets( ).setDerivedMetaData( true );	}