Package org.hibernate.query
Interface NativeQuery.RootReturn
-
- All Superinterfaces:
NativeQuery.ResultNode,NativeQuery.ReturnableResultNode
- All Known Implementing Classes:
CompleteResultBuilderEntityStandard,DynamicResultBuilderEntityCalculated,DynamicResultBuilderEntityStandard
- Enclosing interface:
- NativeQuery<T>
public static interface NativeQuery.RootReturn extends NativeQuery.ReturnableResultNode
Allows access to further control how root returns are mapped back from result sets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NativeQuery.RootReturnaddIdColumnAliases(String... aliases)NativeQuery.ReturnPropertyaddProperty(String propertyName)Add a property, presumably with more than one column.NativeQuery.RootReturnaddProperty(String propertyName, String columnAlias)Add a simple property-to-one-column mapping.StringgetDiscriminatorAlias()EntityMappingTypegetEntityMapping()LockModegetLockMode()NavigablePathgetNavigablePath()StringgetTableAlias()NativeQuery.RootReturnsetDiscriminatorAlias(String columnAlias)Name the column alias that identifies the entity's discriminator.NativeQuery.RootReturnsetLockMode(LockMode lockMode)Set the lock mode for this return.
-
-
-
Method Detail
-
getTableAlias
String getTableAlias()
-
getDiscriminatorAlias
String getDiscriminatorAlias()
-
getEntityMapping
EntityMappingType getEntityMapping()
-
getNavigablePath
NavigablePath getNavigablePath()
-
getLockMode
LockMode getLockMode()
-
setLockMode
NativeQuery.RootReturn setLockMode(LockMode lockMode)
Set the lock mode for this return.- Parameters:
lockMode- The new lock mode.- Returns:
this, for method chaining
-
addIdColumnAliases
NativeQuery.RootReturn addIdColumnAliases(String... aliases)
-
setDiscriminatorAlias
NativeQuery.RootReturn setDiscriminatorAlias(String columnAlias)
Name the column alias that identifies the entity's discriminator.- Parameters:
columnAlias- The discriminator column alias- Returns:
this, for method chaining
-
addProperty
NativeQuery.RootReturn addProperty(String propertyName, String columnAlias)
Add a simple property-to-one-column mapping.- Parameters:
propertyName- The name of the property.columnAlias- The name of the column- Returns:
this, for method chaining
-
addProperty
NativeQuery.ReturnProperty addProperty(String propertyName)
Add a property, presumably with more than one column.- Parameters:
propertyName- The name of the property.- Returns:
- The config object for further control.
-
-