Interface DatabaseEventListener
- All Known Subinterfaces:
DescriptorBasedDatabaseEventListener
- All Known Implementing Classes:
OracleChangeNotificationListener
public interface DatabaseEventListener
PUBLIC:
Defines the API for integration with a database event notification service.
This allows the EclipseLink cache to be invalidated by database change events.
This is used to support Oracle DCN (Database Change event Notification),
but could also be used by triggers or other services.
- See Also:
- Author:
- James Sutherland
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(ClassDescriptor descriptor, org.eclipse.persistence.internal.sessions.AbstractSession session) Initialize the descriptor to receive database change events.void
Register for database change events and invalidate the session's cache.void
Remove registration from database change events.
-
Method Details
-
register
Register for database change events and invalidate the session's cache. This is called on session login. -
remove
Remove registration from database change events. This is called on session logout. -
initialize
void initialize(ClassDescriptor descriptor, org.eclipse.persistence.internal.sessions.AbstractSession session) Initialize the descriptor to receive database change events. This is called when the descriptor is initialized.
-