org.hibernate.event.def.AbstractVisitor Maven / Gradle / Ivy
//$Id: AbstractVisitor.java 7546 2005-07-19 18:17:15Z oneovthafew $
package org.hibernate.event.def;
import org.hibernate.HibernateException;
import org.hibernate.event.EventSource;
import org.hibernate.intercept.LazyPropertyInitializer;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.type.AbstractComponentType;
import org.hibernate.type.CollectionType;
import org.hibernate.type.EntityType;
import org.hibernate.type.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
*/
public abstract class AbstractVisitor {
private final EventSource session;
AbstractVisitor(EventSource session) {
this.session = session;
}
/**
* Dispatch each property value to processValue().
*
* @param values
* @param types
* @throws HibernateException
*/
void processValues(Object[] values, Type[] types) throws HibernateException {
for ( int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy