Enhancing JPublisher-Generated Classes
You might want to enhance the functionality of a custom Java class
generated by JPublisher by adding methods and transient fields to it.
Ways to enhance JPublisher-generated classes
-
Extend the class. That
is, treat the JPublisher-generated class as a superclass, write a
subclass to extend its functionality, and then map the object type to
the subclass.
-
Write a new class that delegates the functionality provided by the
JPublisher-generated class to a field whose type is the generated
class.
-
Add methods to the class. This is not recommended if
you anticipate running JPublisher at some future time to regenerate
the class. If you regenerate a class that you have modified in this
way, your changes (that is, the methods you have added) will be
overwritten. Even if you direct JPublisher output to a separate file,
you will still need to merge your changes into the file.
Related topics
Accessing Oracle Objects and PL/SQL Packages
using Java
Generating Source Code for Oracle Objects and PL/SQL Packages
Copyright © 1997, 2004, Oracle.
All rights reserved.