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 public class UnaryNode extends AbstractSelectExpression { 10 11 public Type getDataType() { 12 return ( (SelectExpression) getFirstChild() ).getDataType(); 13 } 14 15 public void setScalarColumnText(int i) throws SemanticException { 16 ColumnHelper.generateSingleScalarColumn( this, i ); 17 } 18 19 } 20 | Popular Tags |