This feature can be used to support most JavaBeans in your Form. Enhanced JavaBean support automatically registers the properties and methods of a specified JavaBean at runtime, making them available to you from PL/SQL in Forms. The properties and methods are discovered using the standard Java reflection mechanism and are registered using a consistent naming mechanism, making them accessible to you for use in Forms applications.
All interaction with the JavaBean takes place using Built-ins within a new
PL/SQL package called FBEAN
. FBEAN
provides program
units to get and set properties, invoke methods on the JavaBean and various
helper functions including those for registering the JavaBean with the Form
at runtime.
In addition, the enhanced JavaBean support also provides predefined type conversion mechanisms to automatically translate between common Java types and the standard PL/SQL types. This type conversion mechanism is fully extensible, allowing you to create your own type converters for nonstandard type conversions. The creation of custom data type converters is discussed in the Creating Custom Encoders section.
As well as supporting lightweight JavaBeans (those written using the Java Swing classes) the enhanced JavaBean support also provides support for heavyweight JavaBeans (based on the AWT classes) and Java Applets.
If you need additional control over the behavior of the JavaBean or if the predefined data type mappings offered by the enhanced JavaBean support do not suit your needs, you might consider writing your own Java wrapper for the bean. For more information, see How to Add JavaBeans by Writing Your Own Java Code.