Class NativeSQLQueryRootReturn
- java.lang.Object
-
- org.hibernate.engine.query.spi.sql.NativeSQLQueryNonScalarReturn
-
- org.hibernate.engine.query.spi.sql.NativeSQLQueryRootReturn
-
- All Implemented Interfaces:
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(String alias, String entityName, Map<String,String[]> propertyResults, LockMode lockMode)NativeSQLQueryRootReturn(String alias, 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(Object o)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(String alias, 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(String alias, String entityName, Map<String,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 String getReturnEntityName()
The name of the entity to be returned.- Returns:
- The entity name
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classNativeSQLQueryNonScalarReturn
-
hashCode
public int hashCode()
- Overrides:
hashCodein classNativeSQLQueryNonScalarReturn
-
-