org.hibernate.event.def

Class ProxyVisitor

Known Direct Subclasses:
ReattachVisitor, WrapVisitor

public abstract class ProxyVisitor
extends AbstractVisitor

Reassociates uninitialized proxies with the session
Author:
Gavin King

Constructor Summary

ProxyVisitor(EventSource session)

Method Summary

protected static boolean
isOwnerUnchanged(PersistentCollection snapshot, CollectionPersister persister, Serializable id)
Has the owner of the collection changed since the collection was snapshotted and detached?
protected void
reattachCollection(PersistentCollection collection, CollectionType type)
Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapper

Methods inherited from class org.hibernate.event.def.AbstractVisitor

processEntityPropertyValues

Constructor Details

ProxyVisitor

public ProxyVisitor(EventSource session)

Method Details

isOwnerUnchanged

protected static boolean isOwnerUnchanged(PersistentCollection snapshot,
                                          CollectionPersister persister,
                                          Serializable id)
Has the owner of the collection changed since the collection was snapshotted and detached?

reattachCollection

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