The ORA_JAVA
package defines
two data types that can be used in your applications when working with imported
code.
ORA_JAVA.JOBJECT
is designed to store references to Java objects.
Any time you create a Java object instance with the new
function
in a Java Importer generated PL/SQL package, you need to store the result
in a variable of type JOBJECT
. The JOBJECT
data
type can be used in conjunction with the ORA_JAVA
packages'
persistence functions, described in the Controlling
Java Object Persistence, to manage the lifetime of the Java object instance.
ORA_JAVA.JARRAY
is designed to store references to Java arrays.
Any time you create an array using the array built-ins in the ORA_JAVA
package, you must store the result in a variable of type JARRAY
.
The JARRAY
object is used to store all arrays, irrespective
of the data type of the array elements. The JARRAY
data-type
is a subtype of the JOBJECT
data type and as such can be used
with the persistence functions to control the lifetime of the array.
Copyright © 1984, 2005, Oracle. All rights reserved.