Top Description Constructors Methods
org.hibernate.event.internal

public Class OnUpdateVisitor

extends ReattachVisitor
Class Inheritance
Imports
java.io.Serializable, org.hibernate.HibernateException, org.hibernate.collection.spi.PersistentCollection, org.hibernate.event.spi.EventSource, org.hibernate.persister.collection.CollectionPersister, org.hibernate.type.CollectionType

When an entity is passed to update(), we must inspect all its collections and 1. associate any uninitialized PersistentCollections with this session 2. associate any initialized PersistentCollections with this session, using the existing snapshot 3. execute a collection removal (SQL DELETE) for each null collection property or "new" collection
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public
OnUpdateVisitor(EventSource session, Serializable key, Object owner)

Deprecated as a consequence of EventSource being deprecated.

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
Inherited from org.hibernate.event.internal.ReattachVisitor:
extractCollectionKeyFromOwnergetOwnergetOwnerIdentifierprocessComponentremoveCollection

Constructor Detail

OnUpdateVisitorback to summary
public OnUpdateVisitor(EventSource session, Serializable key, Object owner)

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

Method Detail

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