A binary file is an operating-system file, which is represented as a Java File object. For an ODA to generate binary-file content, its ODA class must implement the IGeneratesBinFiles interface. Table 45 lists the methods that the ODA class must define to implement the IGeneratesBinFiles interface.
Table 45. Methods in the IGeneratesBinFiles interface
Method | IGeneratesBinFiles method | Description |
---|---|---|
Source-node-generation method |
None |
Generation of source nodes must be performed by the getTreeNodes() method of the IGeneratesBoDefs interface. For more information, see Using files. |
Content-generation method | generateBinFiles() | Generates the binary files, writing them to ODA memory |
Content-retrieval method | getBinFile() | Retrieves either a specified binary file or all binary files from ODA memory |
Business Object Wizard generates and retrieves content while it displays the Generating Business Objects (Step 5) dialog box. With the IGeneratesBinFiles interface implemented, Business Object Wizard invokes the methods shown in Table 46 to generate and retrieve content.
Table 46. Business Object Wizard and IGeneratesBinFiles methods
Use of method | IGeneratesBinFiles method | For more information |
---|---|---|
Generate files as content | generateBinFiles() | Generating files |
Retrieve the generated files | getBinFile() | Providing access to generated files |
The following sections discuss the implementation of each of the methods in Table 46.