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

NativeSQLQueryRootReturn

public class NativeSQLQueryRootReturn extends NativeSQLQueryNonScalarReturn
Represents a return defined as part of a native sql query which names a "root" entity. A root entity means it is explicitly a "column" in the result, as opposed to a fetched relationship or role.
author
Steve Ebersole

Fields Summary
private String
returnEntityName
Constructors Summary
public NativeSQLQueryRootReturn(String alias, String entityName, org.hibernate.LockMode lockMode)
Construct a return representing an entity returned at the root of the result.

param
alias The result alias
param
entityName The entity name.
param
lockMode The lock mode to apply

		this(alias, entityName, null, lockMode);
	
public NativeSQLQueryRootReturn(String alias, String entityName, Map propertyResults, org.hibernate.LockMode lockMode)

param
alias The result alias
param
entityName The entity name.
param
propertyResults Any user-supplied column->property mappings
param
lockMode The lock mode to apply

		super( alias, propertyResults, lockMode );
		this.returnEntityName = entityName;

	
Methods Summary
public java.lang.StringgetReturnEntityName()
The name of the entity to be returned.

return
The entity name

		return returnEntityName;