Registering an Event with a Descriptor

A persistent class can register a public method as an event method. A descriptor calls the event method when a particular database operation occurs.

Event methods:

Example 4-7 Registering an Event

The following code illustrates an event method definition:

public void myEventHandler(DescriptorEvent event);

Related Topics

About TopLink Descriptors

Supported Events

Working with Events
Specifying Events
Working with Descriptors

 

Copyright © 1997, 2004, Oracle. All rights reserved.