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.
NativeSQLQueryReturn.TraceLogger
Constructor and Description |
---|
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<String,String[]> propertyResults,
LockMode lockMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getReturnEntityName()
The name of the entity to be returned.
|
int |
hashCode() |
getAlias, getLockMode, getPropertyResultsMap, traceLog
public NativeSQLQueryRootReturn(String alias, String entityName, LockMode lockMode)
Construct a return representing an entity returned at the root of the result.
alias
- The result aliasentityName
- The entity name.lockMode
- The lock mode to applypublic NativeSQLQueryRootReturn(String alias, String entityName, Map<String,String[]> propertyResults, LockMode lockMode)
alias
- The result aliasentityName
- The entity name.propertyResults
- Any user-supplied column→property mappingslockMode
- The lock mode to applypublic String getReturnEntityName()
The name of the entity to be returned.
public boolean equals(Object o)
equals
in class NativeSQLQueryNonScalarReturn
public int hashCode()
hashCode
in class NativeSQLQueryNonScalarReturn
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.