Generate object API code for applications that will run on BlackBerry devices.
From | Action |
---|---|
The Mobile Application Diagram | Right-click within the Mobile Application Diagram and select Generate Code. |
WorkSpace Navigator | Right-click the Mobile Application project folder that contains the mobile objects for which you are generating API code, and select Generate Code. |
Option | Description |
---|---|
Language | Select Java. |
Platform | Select the platform ( target device) from the drop-down list for which the device client code is intended.
Note: When generating code into a plain Java project with language 'Java' and platform 'Java Me for BlackBerry', compilation errors are generated because of code references to RIM API's.
To avoid errors, generate code into a BlackBerry project.
|
Unwired Server | Specify a default Unwired Server connection profile to which the generated code connects at runtime. |
Server domain | Choose the domain to which the generated code will connect. If you specified an Unwired Server to which you previously connected successfully, the first domain in the list is chosen by default. You can enter a different domain manually. Note: This field is only enabled when an Unwired Server is selected.
|
Page size | Optionally, select the page size for the generated client code. If the page size is not set, the default page size is 4KB at runtime. The default is a proposed page size based on the selected MBO's attributes. The page size should be larger than the sum of all attribute lengths for any MBO that is included with all the MBOs selected, and must be valid for the database. If the page size is changed, but does not meet these guidelines, object queries that use string or binary attributes with a WHERE clause may fail. Note: This field is only enabled when an Unwired Server is selected.
|
Package | Enter a name for the Java package. |
Destination | Specify the destination of the generated device client files. Enter (or Browse) to a Project path (Mobile Application project) location, and select Generated Code as the destination. JAR files are automatically added to the destination project. Select Clean up destination before code generation to clean up the destination folder before generating the device client files. |
Replication-based | Select to use replication-based synchronization for the application. |
Message-based | This option is not supported for Java applications. |
Backward compatible | Select so the generated code is compatible with the SUP 1.2 release. |