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

public abstract Class AbstractVisitor

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.event.def.DirtyCollectionSearchVisitor, org.hibernate.event.def.EvictVisitor, org.hibernate.event.def.FlushVisitor, org.hibernate.event.def.ProxyVisitor
Imports
org.hibernate.HibernateException, org.hibernate.event.EventSource, org.hibernate.intercept.LazyPropertyInitializer, org.hibernate.persister.entity.EntityPersister, org.hibernate.type.CollectionType, .CompositeType, .EntityType, .Type

Abstract superclass of algorithms that walk a tree of property values of an entity, and perform specific functionality for collections, components and associated entities.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final EventSource

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv final EventSource
pack-priv boolean
includeEntityProperty(Object[] values, int i)

pack-priv boolean
includeProperty(Object[] values, int i)

pack-priv void
process(Object object, EntityPersister persister)

Walk the tree starting from the given entity.

pack-priv Object
processCollection(Object collection, CollectionType type)

Visit a collection.

pack-priv Object
processComponent(Object component, CompositeType componentType)

Visit a component.

pack-priv Object
processEntity(Object value, EntityType entityType)

Visit a many-to-one or one-to-one associated entity.

public void
processEntityPropertyValues(Object[] values, Type[] types)

Dispatch each property value to processValue().

pack-priv void
processValue(int i, Object[] values, Type[] types)

pack-priv final Object
processValue(Object value, Type type)

Visit a property value.

pack-priv void
processValues(Object[] values, Type[] types)

Dispatch each property value to processValue().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sessionback to summary
private final EventSource session

Constructor Detail

AbstractVisitorback to summary
pack-priv AbstractVisitor(EventSource session)

Method Detail

getSessionback to summary
pack-priv final EventSource getSession()
includeEntityPropertyback to summary
pack-priv boolean includeEntityProperty(Object[] values, int i)
includePropertyback to summary
pack-priv boolean includeProperty(Object[] values, int i)
processback to summary
pack-priv void process(Object object, EntityPersister persister) throws HibernateException

Walk the tree starting from the given entity.

processCollectionback to summary
pack-priv Object processCollection(Object collection, CollectionType type) throws HibernateException

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

processComponentback to summary
pack-priv Object processComponent(Object component, CompositeType componentType) throws HibernateException

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

processEntityback to summary
pack-priv Object processEntity(Object value, EntityType entityType) throws HibernateException

Visit a many-to-one or one-to-one associated entity. Default superclass implementation is a no-op.

processEntityPropertyValuesback to summary
public void processEntityPropertyValues(Object[] values, Type[] types) throws HibernateException

Dispatch each property value to processValue().

processValueback to summary
pack-priv void processValue(int i, Object[] values, Type[] types)
processValueback to summary
pack-priv final Object processValue(Object value, Type type) throws HibernateException

Visit a property value. Dispatch to the correct handler for the property type.

processValuesback to summary
pack-priv void processValues(Object[] values, Type[] types) throws HibernateException

Dispatch each property value to processValue().