Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring Amendment Methods

Some TopLink descriptor features cannot be configured from TopLink Workbench. To use these features, you must write a Java method to amend the descriptor after it is loaded as part of the project. This method must have the following characteristics:

In the implementation of this method, you can configure advanced features of the descriptor using any of the public descriptor and mapping API.

Table 28-39 summarizes which descriptors support amendment methods.

Table 28-39 Descriptor Support for Amendment Methods

Descriptor Using TopLink Workbench
Using Java

Relational Descriptors

Supported.


Unsupported

Object-Relational Descriptors

Unsupported
Unsupported

EIS Descriptors

Supported.


Unsupported

XML Descriptors

Supported.


Unsupported

This section describes how to associate an amendment method with a descriptor.

For more information about how to implement an amendment method, see "Amendment and After-Load Methods".

To customize a session, use a session customizer class (see "Configuring Customizer Class").

Using TopLink Workbench

To use an amendment method with a descriptor (after it is loaded as part of the project) use this procedure:

  1. Select a descriptor in the Navigator. Its properties appear in the Editor.

    If the After load advanced property is not visible for the descriptor, right-click the descriptor and choose Select Advanced Properties > After Load from context menu or from the Selected menu.

  2. Click the After Load tab in the Editor.

    Figure 28-42 After Load Tab

    After Load tab

Use the following information to enter data in each field on the tab:

Field Description
Class Click Browse and choose the class of the method to execute.
Static Method Use the Static Method list to choose the static method to execute at run time, after loading the descriptor. The method must be public static and take a single attribute of type oracle.toplink.descriptors.ClassDescriptor.