1 package org.hibernate.hql.ast.tree; 3 4 import org.hibernate.type.Type; 5 6 import antlr.SemanticException; 7 8 13 public abstract class AbstractSelectExpression extends HqlSqlWalkerNode implements SelectExpression { 14 15 private String alias; 16 17 public final void setAlias(String alias) { 18 this.alias = alias; 19 } 20 21 public final String getAlias() { 22 return alias; 23 } 24 25 public boolean isConstructor() { 26 return false; 27 } 28 29 public boolean isReturnableEntity() throws SemanticException { 30 return false; 31 } 32 33 public FromElement getFromElement() { 34 return null; 35 } 36 37 public boolean isScalar() throws SemanticException { 38 Type type = getDataType(); 41 return type != null && !type.isAssociationType(); } 43 } 44 | Popular Tags |