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

EntityJoinWalker

public class EntityJoinWalker extends org.hibernate.loader.AbstractEntityJoinWalker
A walker for loaders that fetch entities
see
EntityLoader
author
Gavin King

Fields Summary
private final org.hibernate.LockMode
lockMode
Constructors Summary
public EntityJoinWalker(org.hibernate.persister.entity.OuterJoinLoadable persister, String[] uniqueKey, int batchSize, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionFactoryImplementor factory, Map enabledFilters)

		super(persister, factory, enabledFilters);

		this.lockMode = lockMode;
		
		StringBuffer whereCondition = whereString( getAlias(), uniqueKey, batchSize )
			//include the discriminator and class-level where, but not filters
			.append( persister.filterFragment( getAlias(), Collections.EMPTY_MAP ) );

		initAll( whereCondition.toString(), "", lockMode );
		
	
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)
Disable outer join fetching if this loader obtains an upgrade lock mode

		return lockMode.greaterThan(LockMode.READ) ?
			false :
			super.isJoinedFetchEnabled(type, config, cascadeStyle);