1 package org.hibernate.hql.ast.tree; 3 4 import org.hibernate.type.Type; 5 6 12 public class SqlNode extends antlr.CommonAST { 13 16 private String originalText; 17 20 private Type dataType; 21 22 public void setText(String s) { 23 super.setText( s ); 24 if ( s != null && s.length() > 0 && originalText == null ) { 25 originalText = s; 26 } 27 } 28 29 public String getOriginalText() { 30 return originalText; 31 } 32 33 public Type getDataType() { 34 return dataType; 35 } 36 37 public void setDataType(Type dataType) { 38 this.dataType = dataType; 39 } 40 41 } 42 | Popular Tags |