Projection Details
The following table summarizes some of the details concerning how elements of Caché classes are projected to Java:
Caché Class | Java Projection |
---|---|
Package | By default, projections are placed in a package with the same name as the package of the Caché class. To change the default package for the projection, set the Caché class' JAVAPACKAGE parameter. |
Properties | Projections contain accessor methods for the Caché properties: getPropertyName and setPropertyName. |
Methods | Projections contain stub versions of the Caché methods that, when invoked by the Java application, invoke the actual method implementation on the Caché server. |
Package Names | In general, projections preserve Caché package names. Exceptions: “%” symbols are replaced with “_”, and the Caché %Library package becomes com.intersys.objects. |
Class and Method Names | In general, projections preserve class and method names. Exceptions: leading “%” symbols are replaced with “sys_”; if the name is a Java reserved word, “_” is prepended to the name; for names of methods and classes of the %Library package, the leading “%” is replaced with “_” and the first letter is converted to lowercase. |
Variable Names | In general, projections preserve variable names. Exceptions: leading “%” symbols are replaced by “_” and if a name is a Java reserved word a “_” is prepended to the name. |