Name

java_get_property — Gets a property value from a Java class instance.

Synopsis

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

Example24.195.static value - Java's PI value returned as DOUBLE PRECISION

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

Example24.196.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;');