Salesforce

JCreate (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

JCreate (Magic xpa 3.x)

Creates a new instance of a Java class (a Java object) and returns a handle to this instance.

The handle should be stored in a BLOB variable.

Syntax:

JCreate(class name,constructor signature, parameters)

Parameters:

class name – An alphanumeric value defining the full name of a Java class.

constructor signature – An alphanumeric value defining the required constructor signature from the Java class.

parameters – An alphanumeric value defining the arguments that need to be passed to the Java class.

Returns:

A pseudo-reference to a new instance

Example:

JCreate('java.lang.StringBuffer','()V') will create an empty String Buffer object.

JCreate('java.lang.StringBuffer','(Ljava/lang/String;)V','My String') will create the same object and initialize it with a String object.

Note:

You will be able to create instances only for Java classes that can be located using your Java classpath settings.

See also:

Java Functions

The Online Samples project (program JV01)

Reference
Attachment 
Attachment