Package org.hibernate.event.internal
Class ProxyVisitor
- java.lang.Object
-
- org.hibernate.event.internal.AbstractVisitor
-
- org.hibernate.event.internal.ProxyVisitor
-
- Direct Known Subclasses:
ReattachVisitor
,WrapVisitor
public abstract class ProxyVisitor extends AbstractVisitor
Reassociates uninitialized proxies with the session
-
-
Constructor Summary
Constructors Constructor Description ProxyVisitor(EventSource session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
isOwnerUnchanged(CollectionPersister persister, Object id, PersistentCollection<?> snapshot)
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.internal.AbstractVisitor
getSession, process, processEntityPropertyValues
-
-
-
-
Constructor Detail
-
ProxyVisitor
public ProxyVisitor(EventSource session)
-
-
Method Detail
-
isOwnerUnchanged
protected static boolean isOwnerUnchanged(CollectionPersister persister, Object id, PersistentCollection<?> snapshot)
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- Throws:
HibernateException
-
-