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

public Class EvictVisitor

extends AbstractVisitor
Class Inheritance
Imports
org.hibernate.HibernateException, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.CollectionEntry, .CollectionKey, .PersistenceContext, org.hibernate.event.spi.EventSource, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.persister.collection.CollectionPersister, 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 CoreMessageLogger
private final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private void
pack-priv boolean
pack-priv Object
Inherited from org.hibernate.event.internal.AbstractVisitor:
getSessionincludePropertyprocessprocessComponentprocessEntityprocessEntityPropertyValuesprocessValueprocessValueprocessValues

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG
ownerback to summary
private final Object owner

Constructor Detail

EvictVisitorback to summary
public EvictVisitor(EventSource session, Object owner)

Method Detail

evictCollectionback to summary
public void evictCollection(Object value, CollectionType type)
evictCollectionback to summary
private void evictCollection(PersistentCollection<?> collection)
includeEntityPropertyback to summary
pack-priv boolean includeEntityProperty(Object[] values, int i)

Overrides org.hibernate.event.internal.AbstractVisitor.includeEntityProperty.

Annotations
@Override
processCollectionback to summary
pack-priv Object processCollection(Object collection, CollectionType type) throws HibernateException

Overrides org.hibernate.event.internal.AbstractVisitor.processCollection.

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

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

Annotations
@Override