【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-AggregateNode.java的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// $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 );
}
}
上一篇:
Aggregate.java
下一篇:
如何当一个轻松的班主任