Package org.hibernate.event.internal
Class DefaultEvictEventListener
java.lang.Object
org.hibernate.event.internal.DefaultEvictEventListener
- All Implemented Interfaces:
EvictEventListener
Defines the default evict event listener used by hibernate for evicting entities
in response to generated flush events. In particular, this implementation will
remove any hard references to the entity that are held by the infrastructure
(references held by application or other persistent instances are okay)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doEvict
(Object object, EntityKey key, EntityPersister persister, EventSource session) void
onEvict
(EvictEvent event) Handle the given evict event.
-
Constructor Details
-
DefaultEvictEventListener
public DefaultEvictEventListener()
-
-
Method Details
-
onEvict
Handle the given evict event.- Specified by:
onEvict
in interfaceEvictEventListener
- Parameters:
event
- The evict event to be handled.- Throws:
HibernateException
-
doEvict
protected void doEvict(Object object, EntityKey key, EntityPersister persister, EventSource session) throws HibernateException - Throws:
HibernateException
-