aggregatenode.java

来自「一个Java持久层类库」· Java 代码 · 共 28 行

JAVA
28
字号
// $Id: AggregateNode.java 7460 2005-07-12 20:27:29Z steveebersole $package org.hibernate.hql.ast.tree;import org.hibernate.hql.ast.util.ColumnHelper;import org.hibernate.type.Type;import antlr.SemanticException;/** * Represents an aggregate function i.e. min, max, sum, avg. * * @author josh Sep 21, 2004 9:22:02 PM */public class AggregateNode extends AbstractSelectExpression implements SelectExpression {	public AggregateNode() {	}	public Type getDataType() {		// Get the function return value type, based on the type of the first argument.		return getSessionFactoryHelper().findFunctionReturnType( getText(), getFirstChild() );	}	public void setScalarColumnText(int i) throws SemanticException {		ColumnHelper.generateSingleScalarColumn( this, i );	}}

⌨️ 快捷键说明

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