public class

NativeSQLQueryRootReturn

extends NativeSQLQueryNonScalarReturn
java.lang.Object
   ↳ org.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
     ↳ org.hibernate.engine.query.sql.NativeSQLQueryRootReturn

Class Overview

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.

Summary

Public Constructors
NativeSQLQueryRootReturn(String alias, String entityName, LockMode lockMode)
Construct a return representing an entity returned at the root of the result.
NativeSQLQueryRootReturn(String alias, String entityName, Map propertyResults, LockMode lockMode)
Public Methods
boolean equals(Object o)
String getReturnEntityName()
The name of the entity to be returned.
int hashCode()
[Expand]
Inherited Methods
From class org.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
From class java.lang.Object

Public Constructors

public NativeSQLQueryRootReturn (String alias, String entityName, LockMode lockMode)

Construct a return representing an entity returned at the root of the result.

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

public NativeSQLQueryRootReturn (String alias, String entityName, Map propertyResults, LockMode lockMode)

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

Public Methods

public boolean equals (Object o)

public String getReturnEntityName ()

The name of the entity to be returned.

Returns
  • The entity name

public int hashCode ()