KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > hql > ast > tree > UnaryNode


1 //$Id: UnaryNode.java,v 1.1 2005/07/12 20:27:17 steveebersole Exp $
2
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