Class Reference
%Projection.Java
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [USER] >  [%Projection] >  [Java]
Private  Storage

abstract class %Projection.Java extends %Projection.AbstractProjection

This projection class generates the appropriate Java client code (using the Caché Java Binding) for the associated class.
For more information refer to the %Projection.AbstractProjection class.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
15 1


Summary

Methods
%ClassIsLatestVersion %ClassName %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Extends %GetParameter %IsA
%OriginalNamespace %PackageName CreateProjection EndCompile
QueueClass RemoveProjection SetQueueFlag getDefaultParam
getROOTDIR


Parameters

• parameter CHECKUPTODATE = 1;
CHECKUPTODATE 0 - don't check if classes are up to date to project 1 - do check if classes are up to date, useful for deploying final application
• parameter DOCUMATICHOST;
• parameter DOCUMATICNAMESPACE;
Choose DOCUMATIC Namespace
• parameter DOCUMATICPORT;
Choose DOCUMATIC Port
• parameter GENERATIONTYPE = 1;
Generation Type 1 - legacy 2 - generate class as implementing interface
• parameter GENSERIALUID = 1;
Generate serialVersionUID
• parameter JAVADOC = 1;
JAVADOC 0 - do NOT generate javadoc 1 - generate javadoc (the default)
• parameter MAKE = 0;
Only generate dependency or class if timestamp of last compilation is greater than timestamp of last generation
• parameter NEWCOLLECTIONS = 1;
When NEWCOLLECTIONS is set collection properties project as java.util.Map (for arrays) and Java.util.List (for lists). When NEWCOLLECTIONS is zero (the default) collection properties project as follows: ArrayOfDataTypes for array of a datatypoe ArrayOfObjects for array of an object ListOfDataTypes for list of a datatype ListOfObjects for list of an object This parameter will be overriden by JAVATYPE if that is specified for property.
• parameter POJO = 0;
POJO mode 0 - legacy 1 - POJO on
• parameter PRIMITIVEDATATYPES = 0;
When PRIMITIVEDATATYPES is set %Integer maps to int, %Float maps to double, %Boolean maps to boolean, and %BigInt maps to long
• parameter PROJECTABSTRACTSTREAM = 0;
PROJECTBYREFMETHODSTOPOJO 0 - generate error when you try to project classes that contain methods with abstract stream arguments or return type 1 - project classes that contain methods with with abstract stream arguments or return type
• parameter PROJECTBYREFMETHODSTOPOJO = 0;
PROJECTBYREFMETHODSTOPOJO 0 - generate error when you try to project classes that contain methods with ByRef arguments to pojo implementation 1 - project classes that contain methods with ByRef arguments to pojo implementation
• parameter RECURSIVE = 1;
RECURSIVE 0 - do NOT generate dependencies 1 - generate dependencies, default
• parameter ROOTDIR;
The root directory in which generated files are written.

Methods

• classmethod CreateProjection(classname As %String, ByRef parameters As %String) as %Status
This method is called by the Class Compiler whenever an associated class has finished compiling. classname contains the name of the associated class while parameters contains an array of the projection parameters subscripted by parameter name. Also the special parameter value parameters("%qstruct") contains a merge of the qstruct array this projection is being compiled with. The modified for an incremental compile will contain a comma separated list of the methods that were modified and it will be blank for a full compile
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.