Skip to main content

Generating Java Projections

Here are two different commands for generating Java projections:

  1. To generate a Java projection for a single Caché class, enter the following at the Terminal MultiValue prompt:

    
    MyAccount: ;"%SYSTEM.OBJ"->ExportJava(<Class>,<Directory>)            
    
    

    <Class> is the name of the Caché class. <Directory> is the name of the directory where Caché places the projection.

  2. To generate Java projections for an entire package of Caché classes, enter the following at the Terminal MultiValue prompt:

    
    MyAccount: ;"%SYSTEM.OBJ"->ExportJavaPackage(<Package>,<Directory>)    
    
    

    <Package> is the name of the package of Caché classes. <Directory> is the name of the directory where Caché places the projections.

Note:

You can also add a projection definition to a Caché class. This causes Caché to generate a Java projection each time it compiles the class.

FeedbackOpens in a new tab