Package org.hibernate.query
Interface NativeQuery.FetchReturn
-
- All Superinterfaces:
NativeQuery.ResultNode
- All Known Implementing Classes:
DynamicFetchBuilderLegacy
- Enclosing interface:
- NativeQuery<T>
public static interface NativeQuery.FetchReturn extends NativeQuery.ResultNode
Allows access to further control how join fetch returns are mapped back from result sets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NativeQuery.ReturnProperty
addProperty(String propertyName)
Add a property, presumably with more than one column.NativeQuery.FetchReturn
addProperty(String propertyName, String columnAlias)
Add a simple property-to-one-column mapping.String
getFetchableName()
String
getOwnerAlias()
String
getTableAlias()
NativeQuery.FetchReturn
setLockMode(LockMode lockMode)
Set the lock mode for this return.
-
-
-
Method Detail
-
getTableAlias
String getTableAlias()
-
getOwnerAlias
String getOwnerAlias()
-
getFetchableName
String getFetchableName()
-
setLockMode
NativeQuery.FetchReturn setLockMode(LockMode lockMode)
Set the lock mode for this return.- Parameters:
lockMode
- The new lock mode.- Returns:
this
, for method chaining
-
addProperty
NativeQuery.FetchReturn 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.
-
-