FileDocCategorySizeDatePackage
CascadeEntityLoader.javaAPI DocHibernate 3.2.5987Tue Jul 26 00:51:48 BST 2005org.hibernate.loader.entity

CascadeEntityLoader.java

//$Id: CascadeEntityLoader.java 7652 2005-07-26 05:51:47Z oneovthafew $
package org.hibernate.loader.entity;

import org.hibernate.MappingException;
import org.hibernate.engine.CascadingAction;
import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.loader.JoinWalker;
import org.hibernate.persister.entity.OuterJoinLoadable;
import org.hibernate.util.CollectionHelper;

public class CascadeEntityLoader extends AbstractEntityLoader {
	
	public CascadeEntityLoader(
			OuterJoinLoadable persister,
			CascadingAction action,
			SessionFactoryImplementor factory) 
	throws MappingException {
		super(
				persister, 
				persister.getIdentifierType(), 
				factory, 
				CollectionHelper.EMPTY_MAP
			);

		JoinWalker walker = new CascadeEntityJoinWalker(
				persister, 
				action,
				factory
			);
		initFromWalker( walker );

		postInstantiate();
		
		log.debug( "Static select for action " + action + " on entity " + entityName + ": " + getSQLString() );

	}

}