FileDocCategorySizeDatePackage
NativeSQLQueryScalarReturn.javaAPI DocHibernate 3.2.5526Thu Jun 15 00:21:06 BST 2006org.hibernate.engine.query.sql

NativeSQLQueryScalarReturn.java

package org.hibernate.engine.query.sql;

import org.hibernate.type.Type;

/**
 * Describes a scalar return in a native SQL query.
 *
 * @author gloegl
 */
public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn {
	private Type type;
	private String columnAlias;

	public NativeSQLQueryScalarReturn(String alias, Type type) {
		this.type = type;
		this.columnAlias = alias;
	}

	public String getColumnAlias() {
		return columnAlias;
	}

	public Type getType() {
		return type;
	}

}