selectpathexpressionparser.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 32 行

JAVA
32
字号
//$Id: SelectPathExpressionParser.java,v 1.4.2.1 2003/08/03 12:06:27 oneovthafew Exp $package net.sf.hibernate.hql;import net.sf.hibernate.QueryException;public class SelectPathExpressionParser extends PathExpressionParser {		public void end(QueryTranslator q) throws QueryException {		if ( getCurrentProperty() != null && !q.isShallowQuery() ) {			// "finish off" the join			token(".", q);			token(null, q);		}		super.end(q);	}		protected void setExpectingCollectionIndex() throws QueryException {		throw new QueryException("expecting .elements or .indices after collection path expression in select");	}		public String getSelectName() {		return getCurrentName();	}}

⌨️ 快捷键说明

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