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.
-
Interface Summary Interface Description AttachListener Listener for when a detached instance is attached.BeginTransactionListener Notified when transactions begin.BrokerFactoryListener Interface for listening toBrokerFactoryEventobjects.CallbackModes Callback handling constants.ClearListener Listener for when persistent state is cleared from an instance.DeleteListener Listener for when a persistent instance is deleted.DetachListener Listener for when a persistent instance is detached.DirtyListener Listener for when a persistent instance becomes dirty.EndTransactionListener Notified when transactions end.FlushTransactionListener Notified on transaction flush.LifecycleCallbacks A lifecycle listener that responds to callbacks rather than events.LifecycleEventManager.ListenerAdapter Interface that facades to other lifecycle listener interfaces can implement to choose which events to respond to based on their delegate.LifecycleListener Interface for listening to allLifecycleEvents.LoadListener Listener for when state is loaded into a persistent instnace.OrphanedKeyAction Perform an action when OpenJPA detects an orphaned key in the database.PersistListener Listener for newly-persisted instances.PostDeleteListener PostPersistListener RemoteCommitListener An entity that wishes to be notified when Brokers associated with remote BrokerFactories commit.RemoteCommitProvider An entity that is responsible for communicating commit notification to otherRemoteCommitEventManagers.StoreListener Listener for when persistent instances are stored to the database.TransactionListener Interface for listening to allTransactionEvents.UpdateListener -
Class Summary Class Description AbstractLifecycleListener Abstract implementation of theLifecycleListenerinterface which delegates events to a single method.AbstractRemoteCommitProvider Abstract implementation ofRemoteCommitProvider.AbstractTransactionListener Abstract implementation of theTransactionListenerinterface that provides no-op implementations of all methods.BeanLifecycleCallbacks Performs a callback method on a cached bean instance.BrokerFactoryEvent Event fired when aBrokerFactoryis created.BrokerFactoryEventManager EventManagerresponsible for notifying listeners ofBrokerFactoryEvents.DynamicTCPRemoteCommitProvider ExceptionOrphanedKeyAction Throw aObjectNotFoundExceptionwhen an orphaned key is discovered.JMSRemoteCommitProvider JMS-based implementation ofRemoteCommitProviderthat listens for object modifications and propagates those changes to other RemoteCommitProviders over a JMS topic.LifecycleEvent Lifecycle event on a persistent instance.LifecycleEventManager Manager that can be used to track and notify listeners on lifecycle events.LifecycleEventManager.ListenerList Extended list that tracks what event types its elements care about.LogOrphanedKeyAction Log a message when an orphaned key is discovered.MethodLifecycleCallbacks Callback adapter that invokes a callback method via reflection.NoneOrphanedKeyAction Does nothing when an orphaned key is discovered.RemoteCommitEvent Event type to hold the IDs of additions, updates, and deletes.RemoteCommitEventManager Manager that can be used to track and notifyRemoteCommitListeners on remote commit events.SingleJVMRemoteCommitProvider Single-JVM-only implementation ofRemoteCommitProviderthat listens for object modifications and propagates those changes to other SingleJVMRemoteCommitProviders in the same JVM.TCPRemoteCommitProvider TCP-based implementation ofRemoteCommitProviderthat listens for object modifications and propagates those changes to other RemoteCommitProviders over TCP sockets.TransactionEvent A transactional event.TransactionEventManager Manager that can be used to track and notify transaction listeners of transaction-related events.