FileDocCategorySizeDatePackage
CollectionJoinWalker.javaAPI DocHibernate 3.2.51169Sun Jul 24 01:53:06 BST 2005org.hibernate.loader.collection

CollectionJoinWalker

public abstract class CollectionJoinWalker extends org.hibernate.loader.JoinWalker
Superclass of walkers for collection initializers
see
CollectionLoader
see
OneToManyJoinWalker
see
BasicCollectionJoinWalker
author
Gavin King

Fields Summary
Constructors Summary
public CollectionJoinWalker(org.hibernate.engine.SessionFactoryImplementor factory, Map enabledFilters)

		super( factory, enabledFilters );
	
Methods Summary
protected java.lang.StringBufferwhereString(java.lang.String alias, java.lang.String[] columnNames, java.lang.String subselect, int batchSize)

		if (subselect==null) {
			return super.whereString(alias, columnNames, batchSize);
		}
		else {
			StringBuffer buf = new StringBuffer();
			if (columnNames.length>1) buf.append('(");
			buf.append( StringHelper.join(", ", StringHelper.qualify(alias, columnNames) ) );
			if (columnNames.length>1) buf.append(')");
			buf.append(" in ")
				.append('(")
				.append(subselect) 
				.append(')");
			return buf;
		}