Top Description Fields Constructors Methods
org.hibernate.event.def

public Class EvictVisitor

extends AbstractVisitor
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, org.hibernate.collection.PersistentCollection, org.hibernate.engine.CollectionEntry, .CollectionKey, org.hibernate.event.EventSource, org.hibernate.pretty.MessageHelper, org.hibernate.type.CollectionType

Evict any collections referenced by the object from the session cache. This will NOT pick up any collections that were dereferenced, so they will be deleted (suboptimal but not exactly incorrect).
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
private void
pack-priv Object
Inherited from org.hibernate.event.def.AbstractVisitor:
getSessionincludeEntityPropertyincludePropertyprocessprocessComponentprocessEntityprocessEntityPropertyValuesprocessValueprocessValueprocessValues

Field Detail

logback to summary
private static final Logger log

Constructor Detail

EvictVisitorback to summary
pack-priv EvictVisitor(EventSource session)

Method Detail

evictCollectionback to summary
public void evictCollection(Object value, CollectionType type)
evictCollectionback to summary
private void evictCollection(PersistentCollection collection)
processCollectionback to summary
pack-priv Object processCollection(Object collection, CollectionType type) throws HibernateException

Overrides org.hibernate.event.def.AbstractVisitor.processCollection.

Doc from org.hibernate.event.def.AbstractVisitor.processCollection.

Visit a collection. Default superclass implementation is a no-op.