Top Description Constructors Methods
org.hibernate.event.internal

public abstract Class ProxyVisitor

extends AbstractVisitor
Class Inheritance
Known Direct Subclasses
org.hibernate.event.internal.ReattachVisitor, org.hibernate.event.internal.WrapVisitor
Imports
java.io.Serializable, org.hibernate.HibernateException, org.hibernate.collection.spi.PersistentCollection, org.hibernate.event.spi.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
ProxyVisitor(EventSource session)

Deprecated as a consequence of EventSource being deprecated.

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.internal.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.internal.AbstractVisitor:
getSessionincludeEntityPropertyincludePropertyprocessprocessCollectionprocessComponentprocessEntityPropertyValuesprocessValueprocessValueprocessValues

Constructor Detail

ProxyVisitorback to summary
public ProxyVisitor(EventSource session)

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

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.internal.AbstractVisitor.processEntity.

Doc from org.hibernate.event.internal.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