www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Phrases
RDF data
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
VAD
Virtuoso Java PL API
java_call_method
java_get_property
java_load_class
java_new_object
java_set_property
java_vm_attach
java_vm_detach
Virtuoso Server Extension Interface (VSEI)
Web & Internet
XML
XPATH & XQUERY

Functions Index

java_new_object

Creates and instance of a Java class.
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
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');
See Also

java_call_method()

java_set_property()

java_get_property()

java_load_class()

java_vm_attach()

java_vm_detach()