FileDocCategorySizeDatePackage
AliasedProjection.javaAPI DocHibernate 3.2.51676Sat Feb 12 00:19:50 GMT 2005org.hibernate.criterion

AliasedProjection

public class AliasedProjection extends Object implements Projection
author
Gavin King

Fields Summary
private final Projection
projection
private final String
alias
Constructors Summary
protected AliasedProjection(Projection projection, String alias)

		this.projection = projection;
		this.alias = alias;
	
Methods Summary
public java.lang.String[]getAliases()

		return new String[]{ alias };
	
public java.lang.String[]getColumnAliases(int loc)

		return projection.getColumnAliases(loc);
	
public java.lang.String[]getColumnAliases(java.lang.String alias, int loc)

		return this.alias.equals(alias) ? 
				getColumnAliases(loc) :
				null;
	
public org.hibernate.type.Type[]getTypes(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return projection.getTypes(criteria, criteriaQuery);
	
public org.hibernate.type.Type[]getTypes(java.lang.String alias, org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return this.alias.equals(alias) ?
				getTypes(criteria, criteriaQuery) :
				null;
	
public booleanisGrouped()

		return projection.isGrouped();
	
public java.lang.StringtoGroupSqlString(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return projection.toGroupSqlString(criteria, criteriaQuery);
	
public java.lang.StringtoSqlString(org.hibernate.Criteria criteria, int position, CriteriaQuery criteriaQuery)

		return projection.toSqlString(criteria, position, criteriaQuery);
	
public java.lang.StringtoString()

		return projection.toString() + " as " + alias;