1 package org.hibernate.hql.ast.tree; 3 4 import org.hibernate.hql.ast.util.ColumnHelper; 5 import org.hibernate.type.Type; 6 7 import antlr.SemanticException; 8 9 14 public class AggregateNode extends AbstractSelectExpression implements SelectExpression { 15 16 public AggregateNode() { 17 } 18 19 public Type getDataType() { 20 return getSessionFactoryHelper().findFunctionReturnType( getText(), getFirstChild() ); 22 } 23 24 public void setScalarColumnText(int i) throws SemanticException { 25 ColumnHelper.generateSingleScalarColumn( this, i ); 26 } 27 } 28 | Popular Tags |