Name
java_new_object — Creates and instance of a Java class.
Synopsis
any
java_new_object
(
|
in class_name varchar , |
in arg1 any , | |
...
) ; |
Description
Creates an instance of a java class, makes a global reference in the Java VM and returns it to Virtuoso as a PL object reference value.
Parameters
class_name
the name of the java class to be instantiated. (eg: java.util.Date)
arg1, ....
the arguments to the constructor called.
Return Types
Virtuoso object reference value.
Examples
Example 24.198. Creating new Java class instances
creates a new java.util.Date class instance and initializes it with the current time from Virtuoso.
cal := java_new_object ('java.util.Date', vector ('L', msec_time()));
creates a new java.util.Date class instance and initializes it with the current time from java VM.
cal := java_new_object ('java.util.Date');