org.hibernate.event.def
Class ProxyVisitor

java.lang.Object
  extended byorg.hibernate.event.def.AbstractVisitor
      extended byorg.hibernate.event.def.ProxyVisitor
Direct Known Subclasses:
ReattachVisitor, WrapVisitor

public abstract class ProxyVisitor
extends AbstractVisitor

Reassociates uninitialized proxies with the session

Author:
Gavin King

Constructor Summary
ProxyVisitor(SessionImplementor session)
           
 
Method Summary
protected static boolean isOwnerUnchanged(CollectionSnapshot snapshot, CollectionPersister persister, Serializable id)
          Has the owner of the collection changed since the collection was snapshotted and detached?
protected  void reattachCollection(PersistentCollection collection, CollectionSnapshot snapshot)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyVisitor

public ProxyVisitor(SessionImplementor session)
Method Detail

isOwnerUnchanged

protected static boolean isOwnerUnchanged(CollectionSnapshot 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,
                                  CollectionSnapshot snapshot)
                           throws HibernateException
Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapper

Throws:
HibernateException