1 package org.hibernate.criterion; 3 4 import org.hibernate.Criteria; 5 import org.hibernate.HibernateException; 6 import org.hibernate.type.Type; 7 8 9 13 public abstract class SimpleProjection implements Projection { 14 15 public Projection as(String alias) { 16 return Projections.alias(this, alias); 17 } 18 19 public String [] getColumnAliases(String alias, int loc) { 20 return null; 21 } 22 23 public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery) 24 throws HibernateException { 25 return null; 26 } 27 28 public String [] getColumnAliases(int loc) { 29 return new String [] { "y" + loc + "_" }; 30 } 31 32 public String [] getAliases() { 33 return new String [1]; 34 } 35 36 public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) 37 throws HibernateException { 38 throw new UnsupportedOperationException ("not a grouping projection"); 39 } 40 41 public boolean isGrouped() { 42 return false; 43 } 44 45 } 46 | Popular Tags |