JPublisher generates a Java class for each object type that it
translates. For each object type, JPublisher generates a type
.java file (or a type.sqlj file if wrapper
methods were requested) for the class code and a type
Ref.java file for the code for the REF class of the Java type.
For example, if you define an EMPLOYEE PL/SQL object type, JPublisher
generates an employee.java file and an
employeeRef.java file.
For each collection type (nested table or VARRAY) it translates,
JPublisher generates a type.java file. For nested
tables, the generated class has methods to get and set
the nested table as an entire array and to get and set
individual elements of the table. JPublisher translates collection types when
generating CustomDatum classes but not when generating
SQLData classes. JPublisher does not generate a type
Ref.java file for nested tables or VARRAYs. This is because
PL/SQL does not allow a REF to be made to these types.
For PL/SQL packages, JPublisher generates classes containing wrapper
methods as SQLJ files. JPublisher also generates method
wrappers in your class that invoke the associated package methods
executing in the server. This is specified by the Include Methods
option.
Note: Since version 8.1.6, the wrapper methods that JPublisher generates to invoke stored procedures are in SQLJ only. Classes generated by JPublisher that contain wrapper methods must be compiled by SQLJ.
About JPublisher
Generating Java Code for Oracle Objects and PL/SQL Packages
Copyright © 1997, 2004, Oracle. All rights reserved.