Top Description Fields Constructors Methods
org.hibernate.event.internal

public Class WrapVisitor

extends ProxyVisitor
Class Inheritance
Known Direct Subclasses
org.hibernate.event.internal.DefaultMergeEventListener.CollectionVisitor
Imports
org.hibernate.HibernateException, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.bytecode.enhance.spi.interceptor.EnhancementAsProxyLazinessInterceptor, .LazyAttributeLoadingInterceptor, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.CollectionEntry, .CollectionKey, .EntityEntry, .PersistenceContext, .PersistentAttributeInterceptor, .SessionImplementor, org.hibernate.event.spi.EventSource, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.metamodel.spi.MappingMetamodelImplementor, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.AbstractEntityPersister, .EntityPersister, org.hibernate.type.CollectionType, .CompositeType, .Type

Wrap collections in a Hibernate collection wrapper.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
protected Object
protected Object
private static final CoreMessageLogger
private boolean

Constructor Summary

AccessConstructor and Description
public
WrapVisitor(Object entity, Object id, EventSource session)

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
process(Object object, EntityPersister persister)

Overrides org.hibernate.event.internal.AbstractVisitor.process.

Walk the tree starting from the given entity.
pack-priv final Object
protected Object
protected Object
protected void
Inherited from org.hibernate.event.internal.ProxyVisitor:
isOwnerUnchangedprocessEntityreattachCollection

Field Detail

entityback to summary
protected Object entity
idback to summary
protected Object id
LOGback to summary
private static final CoreMessageLogger LOG
substituteback to summary
private boolean substitute

Constructor Detail

WrapVisitorback to summary
public WrapVisitor(Object entity, Object id, EventSource session)

Method Detail

isSubstitutionRequiredback to summary
public boolean isSubstitutionRequired()
processback to summary
public void process(Object object, EntityPersister persister) throws HibernateException

Overrides org.hibernate.event.internal.AbstractVisitor.process.

Doc from org.hibernate.event.internal.AbstractVisitor.process.

Walk the tree starting from the given entity.

Annotations
@Override
processArrayOrNewCollectionback to summary
pack-priv final Object processArrayOrNewCollection(Object collection, CollectionType collectionType) throws HibernateException
processCollectionback to summary
protected Object processCollection(Object collection, CollectionType collectionType) throws HibernateException

Overrides org.hibernate.event.internal.AbstractVisitor.processCollection.

Doc from org.hibernate.event.internal.AbstractVisitor.processCollection.

Visit a collection. Default superclass implementation is a no-op.

Annotations
@Override
processComponentback to summary
protected Object processComponent(Object component, CompositeType componentType) throws HibernateException

Overrides org.hibernate.event.internal.AbstractVisitor.processComponent.

Doc from org.hibernate.event.internal.AbstractVisitor.processComponent.

Visit a component. Dispatch each property to processValue().

Annotations
@Override
processValueback to summary
protected void processValue(int i, Object[] values, Type[] types)

Overrides org.hibernate.event.internal.AbstractVisitor.processValue.

Annotations
@Override