Top Description Constructors Methods
org.hibernate.event.def

public abstract Class ProxyVisitor

extends AbstractVisitor
Class Inheritance
Known Direct Subclasses
org.hibernate.event.def.ReattachVisitor, org.hibernate.event.def.WrapVisitor
Imports
java.io.Serializable, org.hibernate.HibernateException, org.hibernate.collection.PersistentCollection, org.hibernate.event.EventSource, org.hibernate.persister.collection.CollectionPersister, org.hibernate.type.CollectionType, .EntityType

Reassociates uninitialized proxies with the session
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
protected static boolean
isOwnerUnchanged(final PersistentCollection snapshot, final CollectionPersister persister, final Serializable id)

Has the owner of the collection changed since the collection was snapshotted and detached?

pack-priv Object
processEntity(Object value, EntityType entityType)

Overrides org.hibernate.event.def.AbstractVisitor.processEntity.

Visit a many-to-one or one-to-one associated entity.
protected void
reattachCollection(PersistentCollection collection, CollectionType type)

Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapper

Inherited from org.hibernate.event.def.AbstractVisitor:
getSessionincludeEntityPropertyincludePropertyprocessprocessCollectionprocessComponentprocessEntityPropertyValuesprocessValueprocessValueprocessValues

Constructor Detail

ProxyVisitorback to summary
public ProxyVisitor(EventSource session)

Method Detail

isCollectionSnapshotValidback to summary
private static boolean isCollectionSnapshotValid(PersistentCollection snapshot)
isOwnerUnchangedback to summary
protected static boolean isOwnerUnchanged(final PersistentCollection snapshot, final CollectionPersister persister, final Serializable id)

Has the owner of the collection changed since the collection was snapshotted and detached?

processEntityback to summary
pack-priv Object processEntity(Object value, EntityType entityType) throws HibernateException

Overrides org.hibernate.event.def.AbstractVisitor.processEntity.

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

Visit a many-to-one or one-to-one associated entity. Default superclass implementation is a no-op.

reattachCollectionback to summary
protected void reattachCollection(PersistentCollection collection, CollectionType type) throws HibernateException

Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapper