Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%Projection] >  [Java]
Private  Storage   

abstract class %Projection.Java extends %Projection.AbstractProjection

This projection class generates the appropriate Java client code (using the 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
%New %OriginalNamespace %PackageName %SetModified
AddToManifest CreateProjection EndCompile QueueClass
RemoveFromManifest RemoveFromQueue 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 is always blank.
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.