⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collectionjoinwalker.java

📁 一个Java持久层类库
💻 JAVA
字号:
//$Id: CollectionJoinWalker.java 7627 2005-07-24 06:53:06Z oneovthafew $package org.hibernate.loader.collection;import java.util.Map;import org.hibernate.engine.SessionFactoryImplementor;import org.hibernate.loader.JoinWalker;import org.hibernate.util.StringHelper;/** * Superclass of walkers for collection initializers *  * @see CollectionLoader * @see OneToManyJoinWalker * @see BasicCollectionJoinWalker * @author Gavin King */public abstract class CollectionJoinWalker extends JoinWalker {		public CollectionJoinWalker(SessionFactoryImplementor factory, Map enabledFilters) {		super( factory, enabledFilters );	}	protected StringBuffer whereString(String alias, String[] columnNames, 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;		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -