Fujitsu J Adapter Class Generator Portable Generator User Manual


 
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
INVOKE
object-1
"J-EQUALS" USING
object-2
RETURNING
result
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 Type Function
JVM-INIT Factory Initializes the Java VM (Only at the first calling). Connects
the current thread to the Java VM
JVM-ATTACH Factory Same as JVM-INIT
JVM-TERMINATE Factory Terminates the Java VM (Only at the last calling).
Disconnects the current thread from the Java VM
JVM-DETACH Factory Disconnects the current thread from the Java VM
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
Fujitsu NetCOBOL User's Guide
for information
on how to specify the environment variables.