You can generate program code for Java 1.7 or later. Note the following when generating code:
•You can generate code either from a single mapping design (.mfd), or from a mapping project (.mfp). If you generate code from a single mapping, the resulting application executes the respective mapping transformation. If you generate code from a MapForce project (.mfp) which includes multiple mappings, the resulting application executes in bulk all mappings included in the project.
•You can change the general code generation options from the Tools | Options menu, Generation tab.
•You can change the name of the generated mapping application and other settings from the File | Mapping settings menu. The default application name is Mapping.
•If your mapping contains database components, you can view database specific settings by clicking a database component, and then selecting the menu option Component | Properties.
A typical Java project generated by MapForce includes the following:
•Several Altova-signed Java packages required by the mapping (all prefixed with com.altova).
•The com.mapforce package, which includes the mapping application and dependent files (as shown below, it is possible to change the name of this package). The two most important files in this package are as follows:
oThe Java mapping application as a dialog application (MappingApplication.java).
oThe Java mapping application as a console application (MappingConsole.java).
•A build.xml file which you can execute with Apache Ant to compile the project and generate JAR files.
Sample MapForce-generated Java application (Eclipse IDE)
This section includes the following topics: