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

public abstract Class AbstractVisitor

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.event.internal.DirtyCollectionSearchVisitor, org.hibernate.event.internal.EvictVisitor, org.hibernate.event.internal.FlushVisitor, org.hibernate.event.internal.ProxyVisitor
Imports
org.hibernate.HibernateException, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.event.spi.EventSource, 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
session

Deprecated as a consequence of EventSource being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractVisitor(EventSource session)

Deprecated as a consequence of EventSource being deprecated.

Method Summary

Modifier and TypeMethod and Description
pack-priv final EventSource
getSession()

Deprecated as a consequence of EventSource being deprecated.
pack-priv boolean
includeEntityProperty(Object[] values, int i)

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

public 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

Deprecated

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

Constructor Detail

AbstractVisitorback to summary
pack-priv AbstractVisitor(EventSource session)

Deprecated

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

Method Detail

getSessionback to summary
pack-priv final EventSource getSession()

Deprecated

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

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
public 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().