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

public Class OnReplicateVisitor

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

When an entity is passed to replicate(), and there is an existing row, 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

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public
OnReplicateVisitor(EventSource session, Serializable key, Object owner, boolean isUpdate)

Deprecated as a consequence of EventSource being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from org.hibernate.event.internal.ReattachVisitor:
extractCollectionKeyFromOwnergetOwnergetOwnerIdentifierprocessComponentremoveCollection

Field Detail

isUpdateback to summary
private boolean isUpdate

Constructor Detail

OnReplicateVisitorback to summary
public OnReplicateVisitor(EventSource session, Serializable key, Object owner, boolean isUpdate)

Deprecated

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

Method Detail

processCollectionback to summary
public 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