Class NativeSQLQueryRootReturn
- java.lang.Object
-
- org.hibernate.engine.query.spi.sql.NativeSQLQueryNonScalarReturn
-
- org.hibernate.engine.query.spi.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.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn
NativeSQLQueryReturn.TraceLogger
-
-
Constructor Summary
Constructors Constructor Description NativeSQLQueryRootReturn(java.lang.String alias, java.lang.String entityName, java.util.Map<java.lang.String,java.lang.String[]> propertyResults, LockMode lockMode)NativeSQLQueryRootReturn(java.lang.String alias, java.lang.String entityName, LockMode lockMode)Construct a return representing an entity returned at the root of the result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetReturnEntityName()The name of the entity to be returned.inthashCode()-
Methods inherited from class org.hibernate.engine.query.spi.sql.NativeSQLQueryNonScalarReturn
getAlias, getLockMode, getPropertyResultsMap, traceLog
-
-
-
-
Constructor Detail
-
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<java.lang.String,java.lang.String[]> propertyResults, LockMode lockMode)- Parameters:
alias- The result aliasentityName- The entity name.propertyResults- Any user-supplied column->property mappingslockMode- The lock mode to apply
-
-
Method Detail
-
getReturnEntityName
public java.lang.String getReturnEntityName()
The name of the entity to be returned.- Returns:
- The entity name
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classNativeSQLQueryNonScalarReturn
-
hashCode
public int hashCode()
- Overrides:
hashCodein classNativeSQLQueryNonScalarReturn
-
-