Package org.apache.openjpa.event
package org.apache.openjpa.event
OpenJPA Events
This package provides some interfaces and useful implementations for OpenJPA's event notification framework. This framework allows efficient notification of object modifications and transaction changes.
-
ClassDescriptionAbstract implementation of the
LifecycleListener
interface which delegates events to a single method.Abstract implementation ofRemoteCommitProvider
.Abstract implementation of theTransactionListener
interface that provides no-op implementations of all methods.Listener for when a detached instance is attached.Performs a callback method on a cached bean instance.Notified when transactions begin.Event fired when aBrokerFactory
is created.EventManager
responsible for notifying listeners ofBrokerFactoryEvent
s.Interface for listening toBrokerFactoryEvent
objects.Callback handling constants.Listener for when persistent state is cleared from an instance.Listener for when a persistent instance is deleted.Listener for when a persistent instance is detached.Listener for when a persistent instance becomes dirty.Notified when transactions end.Throw aObjectNotFoundException
when an orphaned key is discovered.Notified on transaction flush.JMS-based implementation ofRemoteCommitProvider
that listens for object modifications and propagates those changes to other RemoteCommitProviders over a JMS topic.A lifecycle listener that responds to callbacks rather than events.Lifecycle event on a persistent instance.Manager that can be used to track and notify listeners on lifecycle events.Interface that facades to other lifecycle listener interfaces can implement to choose which events to respond to based on their delegate.Extended list that tracks what event types its elements care about.Interface for listening to allLifecycleEvent
s.Listener for when state is loaded into a persistent instnace.Log a message when an orphaned key is discovered.Callback adapter that invokes a callback method via reflection.Does nothing when an orphaned key is discovered.Perform an action when OpenJPA detects an orphaned key in the database.Listener for newly-persisted instances.Event type to hold the IDs of additions, updates, and deletes.Manager that can be used to track and notifyRemoteCommitListener
s on remote commit events.An entity that wishes to be notified when Brokers associated with remote BrokerFactories commit.An entity that is responsible for communicating commit notification to otherRemoteCommitEventManager
s.Single-JVM-only implementation ofRemoteCommitProvider
that listens for object modifications and propagates those changes to other SingleJVMRemoteCommitProviders in the same JVM.Listener for when persistent instances are stored to the database.TCP-based implementation ofRemoteCommitProvider
that listens for object modifications and propagates those changes to other RemoteCommitProviders over TCP sockets.A transactional event.Manager that can be used to track and notify transaction listeners of transaction-related events.Interface for listening to allTransactionEvent
s.