Skip to main content

%Compiler.Binding.JavaMethodCreator

Class %Compiler.Binding.JavaMethodCreator Extends %RegisteredObject [ System = 4 ]

Properties

class

Property class As %Dictionary.CompiledClass;

className

Property className As %String;

rootSuper

Property rootSuper As %String;

leftSuper

Property leftSuper As %String;

irisSupers

Property irisSupers As %List;

classType

Property classType As %String;

irisPackage

Property irisPackage As %String;

projParams

Property projParams As %ArrayOfDataTypes;

newCollections

Property newCollections As %Boolean;

tConverter

Property tConverter As JavaTypeConverter;

jdCreator

Property jdCreator As JavaDocCreator;

propsWithGetter

Property propsWithGetter As %List [ MultiDimensional ];

propsWithSetter

Property propsWithSetter As %List [ MultiDimensional ];

conflictedMemberName

Property conflictedMemberName As %List;

objectLibraryTypes

Property objectLibraryTypes As %List;

streamTypes

Property streamTypes As %List;

utilConvertedTypes

Property utilConvertedTypes As %List;

systemMethods

Property systemMethods As %List;

ignoredMethods

Property ignoredMethods As %List;

typesWithBuildIndices

Property typesWithBuildIndices As %List;

Methods

%OnNew

Method %OnNew(class As %Dictionary.CompiledClass, className As %String, rootSuper As %String, leftSuper As %String, irisSupers As %List, projParams As %ArrayOfDataTypes, jdCreator As JavaDocCreator) As %Status

createMethod

Method createMethod(file As JavaFile, javaMethodName As %String, params As %List, returnType As %String, irisMethodName As %String, returnsObject = 0, isStatic = 0, description = "", createsJavaDoc = 1, interfaceFile = "")

Create a new method

createIRISCall

Method createIRISCall(file As JavaFile, args As %String, returnType As %String, returnsObject As %Boolean, irisMethodName As %String, isStatic = 0)

create call to IRIS method

getCastForIRISCall

Method getCastForIRISCall(typeForIRISCall As %String, ByRef rType As %String, ByRef cast As %String)

processResultOfIRISCall

Method processResultOfIRISCall(file As JavaFile, returnType As %String, typeForIRISCall As %String, elementType = "", isStatic = 0)

createConstructors

Method createConstructors(file As JavaFile, onNew As %CompiledMethod, ByRef qstruct As %String) As %Status

Create constructors

createOpens

Method createOpens(file As JavaFile, tableName As %String)

Create %OpenId and %Open

createOpen

Method createOpen(file As JavaFile, javaMethodName1 As %String, javaMethodName2 As %String, params As %List, returnType As %String, irisMethodName As %String, returnsObject = 0)

Template to create 1 pair of open methods

createDeletes

Method createDeletes(file As JavaFile)

Create %Delete and %DeleteId

createExists

Method createExists(file As JavaFile)

Generate %Exists and %ExistsId

createClassName

Method createClassName(file As JavaFile, hasFields As %Boolean)

Generate ClassName methods

trackProperties

Method trackProperties(prop As %CompiledProperty, properties As %ArrayOfDataTypes, leftSuperProps As %ArrayOfDataTypes, ByRef qstruct As %String) As %Status

Track all properties of the class

createProperty

Method createProperty(file As JavaFile, prop As %Dictionary.CompiledProperty, interfaceFile = "") As %Status

Create property methods

createPropertySystemMethod

Method createPropertySystemMethod(file As JavaFile, irisType As %String, javaType As %String, elementType As %String, collectionType As %String, propName As %String, propPackage As %String)

Generate IsValid() and Logical/Display methods

createGetter

Method createGetter(file As JavaFile, propPackage As %String, propName As %String, clientName As %String, propType As %String, elementType As %String, collectionType As %String, description As %String, interfaceFile = "")

Create property getter

createSetter

Method createSetter(file As JavaFile, propPackage As %String, propName As %String, clientName As %String, propType As %String, collectionType As %String, isRelationship As %Boolean, isReadOnly As %Boolean, description As %String, interfaceFile = "")

Create property setter

createIndexMethods

Method createIndexMethods(file As JavaFile, index As %Dictionary.CompiledIndex, ByRef qstruct As %String) As %Status

Create index methods

createQueryMethod

Method createQueryMethod(file As JavaFile, query As %CompiledQuery)

Create user-defined methods

createUserDefinedMethod

Method createUserDefinedMethod(file As JavaFile, method As %CompiledMethod, properties As %ArrayOfDataTypes, interfaceFile = "", ByRef qstruct As %String) As %Status

Create user-defined methods

isProjectableMethod

Method isProjectableMethod(method As %CompiledMethod) As %Boolean

createStoredProcedure

Method createStoredProcedure(file As JavaFile, methodName As %String, argCount As %Integer, returnType As %String, sqlName As %String, description As %String)

Create stored procedure for a SqlProc class method

convertReturnType

Method convertReturnType(ByRef returnType As %String, ByRef package = "", ByRef returnsObject As %Boolean, ByRef qstruct As %String) As %Status

Format a method return type into the right form to append to a Java template

convertParams

Method convertParams(ByRef convertedParams As %ListOfDataTypes, methodParams As %String, ByRef qstruct As %String) As %Status

Format a string of method parameters into a $list of parameters

createMethodPair

Method createMethodPair(file As JavaFile, javaMethodName1 As %String, javaMethodName2 As %String, params As %List, returnType As %String, irisMethodName As %String, returnsObject = 0)

Template to create 1 pair of system methods

createOpenByQueryPair

Method createOpenByQueryPair(file As JavaFile, tableName As %String)

Create %OpenByQuery

createOpenByQuery

Method createOpenByQuery(file As JavaFile, tableName As %String, hasArgs = 0)

resolveConflictedMemberName

Method resolveConflictedMemberName(name As %String) As %String

createDateTimeValidator

Method createDateTimeValidator(file As JavaFile, propName = "", propType = "")

default

Method default()