selectpathexpressionparser.java
来自「hibernate-3.1.3-all-src.zip 面向对象的访问数据库工」· Java 代码 · 共 32 行
JAVA
32 行
//$Id: SelectPathExpressionParser.java 5861 2005-02-22 14:07:36Z oneovthafew $
package org.hibernate.hql.classic;
import org.hibernate.QueryException;
public class SelectPathExpressionParser extends PathExpressionParser {
public void end(QueryTranslatorImpl 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( "illegal syntax near collection-valued path expression in select: " + getCollectionName() );
}
public String getSelectName() {
return getCurrentName();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?