Fj-Java-Control Class - Fujitsu J Adapter Class Generator User Manual

Fujitsu user's guide j adapter class generator
Table of Contents

Advertisement

48
Chapter 5. Adapter Class Reference
J-EQUALS Method (object method)
Explanation
This method checks whether the Java objects indicated by two adapter objects are
equal.
Syntax
object-1
INVOKE
Parameter and return value
object-1, object-2 (attribute: OBJECT REFERENCE FJ-JAVA-BASE)
Specifies the adapter objects to be compared.
result (attribute: PIC 1)
Returns B'1' if a match occurs; otherwise, returns B'0'.

FJ-JAVA-CONTROL class

The FJ-JAVA-CONTROL class controls the Java VM.
The FJ-JAVA-CONTROL class has the methods shown below:
Methods used to control Java VM
Method name
JVM-INIT
JVM-ATTACH
JVM-TERMINATE
JVM-DETACH
JVM-INIT Method (factory method)
Explanation
When it is called initially in a process, Java VM is initialized. This must be executed
before using the adapter class.
Also, the current thread is connected to Java VM. In the multithread applications,
the current thread must be connected to Java VM for each thread.
This is equivalent to the JVM-ATTACH method.
Syntax
INVOKE FJ-JAVA-CONTROL "JVM-INIT"
Environment variable
The Java VM execution environment can be customized by specifying the following
environment variables. Refer to the
on how to specify the environment variables.
object-2
"J-EQUALS" USING
Type
Function
Factory
Initializes the Java VM (Only at the first calling). Connects
the current thread to the Java VM
Factory
Same as JVM-INIT
Factory
Terminates the Java VM (Only at the last calling).
Disconnects the current thread from the Java VM
Factory
Disconnects the current thread from the Java VM
Fujitsu NetCOBOL User's Guide
result
RETURNING
for information

Advertisement

Table of Contents
loading

Table of Contents