This function will returns an XML description of the selected classes from the source files.
The XML produced by the JVM_REF_IMPORT can be supplied to the predefined XSL style sheet __javavm_type to produce the CREATE TYPE statements:
select xslt ('__javavm_type', xml_tree_doc (JVM_REF_IMPORT (files, classes)));
This can also be achieve directly using a single call to:
IMPORT_JAR (in files any, in classes any)
A varchar of XML that describes the selected Java classes.
JVM_REF_IMPORT (NULL, vector ('java.lang.Object', 'java.lang.System'));
This will return an XML describing the Java classes java.lang.Object and java.lang.System. Because the java.lang.System class is a subclass of java.lang.Object the XML description for java.lang.System will contain a reference to java.lang.Object and only the methods/members defined in java.lang.System (because the methods/members of java.lang.Object will be inherited).
JVM_REF_IMPORT (NULL, 'java.lang.System');
As opposed to the above example this will create an XML description only for the java.lang.System class, but will also add the inherited methods/members (from java.lang.Object) as if they were methods/members of the java.lang.System class.