Package org.hibernate.event.def
Class ProxyVisitor
java.lang.Object
org.hibernate.event.def.AbstractVisitor
org.hibernate.event.def.ProxyVisitor
- Direct Known Subclasses:
ReattachVisitor,WrapVisitor
Reassociates uninitialized proxies with the session
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanisOwnerUnchanged(PersistentCollection snapshot, CollectionPersister persister, Serializable id) Has the owner of the collection changed since the collection was snapshotted and detached?protected voidreattachCollection(PersistentCollection collection, CollectionType type) Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapperMethods inherited from class org.hibernate.event.def.AbstractVisitor
processEntityPropertyValues
-
Constructor Details
-
ProxyVisitor
-
-
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- Throws:
HibernateException
-