# 22. Virtuoso Functions Guide - java_get_property

Chapter Contents | Prev | Next
Keyword Search:
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
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
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 Server & Internet
XML
XPATH & XQUERY
Functions Index

## java_get_property

Gets a property value from a Java class instance.
java_get_property (in class_name varchar, in instance_obj varchar, in field_name varchar, in field_ret_type_sig varchar);
Description

Gets a property value from a Java class instance referenced by instance_obj. If instance_obj is not supplied, ie NULL, then it is returned as a static Java class property value.

Parameters
class_name – the name of the java class to get the property from
instance_obj – the Java VM class instance reference value (for example returned by java_new_object VSEI). Can be NULL.
field_name – the name of the field in the java class
field_ret_type_sig – the JNI type signature of the field.
Examples
static value - Java's PI value returned as DOUBLE PRECISION

    java_get_property ('java.lang.Math', NULL, 'PI', 'D');

default time zone name in tz_name

    tz := java_call_method ('java.util.TimeZone', NULL, 'getDefault', 'Ljava/util/TimeZone;');
    tz_name := java_get_property ('java.util.TimeZone', tz, 'getDisplayName', 'Ljava/lang/String;');

See Also

java_call_method()

java_set_property()

java_vm_attach()

java_load_class()

java_new_object()

java_vm_detach()