FileDocCategorySizeDatePackage
CascadeEntityJoinWalker.javaAPI DocHibernate 3.2.51680Thu May 04 20:24:12 BST 2006org.hibernate.loader.entity

CascadeEntityJoinWalker

public class CascadeEntityJoinWalker extends org.hibernate.loader.AbstractEntityJoinWalker

Fields Summary
private final org.hibernate.engine.CascadingAction
cascadeAction
Constructors Summary
public CascadeEntityJoinWalker(org.hibernate.persister.entity.OuterJoinLoadable persister, org.hibernate.engine.CascadingAction action, org.hibernate.engine.SessionFactoryImplementor factory)

		super( persister, factory, CollectionHelper.EMPTY_MAP );
		this.cascadeAction = action;
		StringBuffer whereCondition = whereString( getAlias(), persister.getIdentifierColumnNames(), 1 )
				//include the discriminator and class-level where, but not filters
				.append( persister.filterFragment( getAlias(), CollectionHelper.EMPTY_MAP ) );
	
		initAll( whereCondition.toString(), "", LockMode.READ );
	
Methods Summary
public java.lang.StringgetComment()

		return "load " + getPersister().getEntityName();
	
protected booleanisJoinedFetchEnabled(org.hibernate.type.AssociationType type, org.hibernate.FetchMode config, org.hibernate.engine.CascadeStyle cascadeStyle)

		return ( type.isEntityType() || type.isCollectionType() ) &&
				( cascadeStyle==null || cascadeStyle.doCascade(cascadeAction) );
	
protected booleanisTooManyCollections()

		return countCollectionPersisters(associations)>0;