MetaData and Object Manager API

Some applications or frameworks may wish to operate against MBOs in a generic manner by invoking MBO operations without prior knowledge of MBO classes. This can be achieved by using the MetaData and Object Manager APIs.

These APIs allow retrieving the metadata of packages, MBOs, attributes, operations and parameters during runtime. The APIs are especially useful for a runtime environment without a reflection mechanism such as J2ME.

You can generate metadata classes using the –md code generation option. You can use the –rm option to generate the object manager class.

You can also generate metadata classes by selecting the option "Generate metadata classes" or "Generate metadata and object manager classes" option in the code generation wizard in the mobile application project.