Provides the interface to register event handlers for
com.db4o.ObjectContainer events.
EventRegistry methods represent events available for registering callbacks.
An EventRegistry instance can be obtained from the
EventRegistryFactory .
EventRegistry registry = EventRegistryFactory.forObjectContainer(container);
A new callback can be registered for an event with the following code:
registry.created().addListener(new EventListener4(){...}); See Also:EventRegistryFactory See Also:EventListener4
creating() This event is fired before an object is saved for the first time.
The object can be obtained from
CancellableObjectEventArgs event parameter.
This event is fired when a new class is registered with metadata.
The class information can be obtained from
ClassEventArgs event parameter.
event See Also:ClassEventArgs
This event is fired after a transaction has been committed.
The transaction and a list of the modified objects can
be obtained from the
CommitEventArgs event parameter.
This event is fired after a transaction has been committed.
The transaction and a list of the modified objects can
be obtained from the
CommitEventArgs event parameter.
This event is fired when a persistent object is instantiated.
The object can be obtained from the
ObjectEventArgs event parameter.
event See Also:ObjectEventArgs
This event is fired upon a query end and can be used to gather
query statistics.
The query object is available from
QueryEventArgs event parameter.
event See Also:QueryEventArgs
This event is fired upon a query start and can be used to gather
query statistics.
The query object is available from
QueryEventArgs event parameter.
event See Also:QueryEventArgs