org.hibernate.engine.query.sql
Class NativeSQLQueryRootReturn
java.lang.Object
org.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
org.hibernate.engine.query.sql.NativeSQLQueryRootReturn
- All Implemented Interfaces:
- java.io.Serializable, NativeSQLQueryReturn
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
- See Also:
- Serialized Form
Constructor Summary |
NativeSQLQueryRootReturn(java.lang.String alias,
java.lang.String entityName,
LockMode lockMode)
Construct a return representing an entity returned at the root
of the result. |
NativeSQLQueryRootReturn(java.lang.String alias,
java.lang.String entityName,
java.util.Map propertyResults,
LockMode lockMode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeSQLQueryRootReturn
public NativeSQLQueryRootReturn(java.lang.String alias,
java.lang.String entityName,
LockMode lockMode)
- Construct a return representing an entity returned at the root
of the result.
- Parameters:
alias
- The result aliasentityName
- The entity name.lockMode
- The lock mode to apply
NativeSQLQueryRootReturn
public NativeSQLQueryRootReturn(java.lang.String alias,
java.lang.String entityName,
java.util.Map propertyResults,
LockMode lockMode)
- Parameters:
alias
- The result aliasentityName
- The entity name.propertyResults
- Any user-supplied column->property mappingslockMode
- The lock mode to apply
getReturnEntityName
public java.lang.String getReturnEntityName()
- The name of the entity to be returned.
- Returns:
- The entity name
Copyright © 2008 Hibernate.org. All Rights Reserved.