generateBoDefs()

Generates business object definitions for the specified source nodes.

Syntax

public ContentMetaData generateBoDefs(String[] srcNodeNames);
 

Parameters

srcNodeNames [ ]
Is an array that contains the names of source nodes that the user has selected.

Return values

A ContentMetaData object, which describes the generated business object definitions for the source nodes named in the srcNodeNames argument.

Exceptions

ODKException
Thrown if the generation of business object definitions fails.

Notes

The generateBoDefs() method is the content-generation method for the IGeneratesBoDefs interface. It creates business object definitions for each of the source nodes named in the srcNodeNames array. The user has selected these source nodes in the Select Source dialog box of Business Object Wizard. Once the user has finished selecting source nodes, Business Object Wizard calls the generateBinFiles() method to generate content. It calls this method in Step 5, Generating Business Objects, of its start.

Note:
Business Object Wizard always calls generateBoDefs() because the ODA must support an on-request content protocol for generation of business object definitions. For more information on content protocols, see Choosing the ODA content protocol.

The goal of the generateBoDefs() method is to generate a business object definition (BusObjDef object) for each user-selected source node, store it in the generated-content structure, and return a content-metadata (ContentMetaData) object that describes the generated content. This method does not actually return the generated content to Business Object Wizard. From this returned content-metadata object, Business Object Wizard can determine whether the content-generation process is complete. When generation is complete, Business Object Wizard obtains the generated business object definitions with the getBoDefs() method. For more information on how to implement generateBoDefs(), see Generating business object definitions.

See also

generateBinFiles(), getBoDefs()

Copyright IBM Corp. 1997, 2004