Class CompleteResultBuilderEntityStandard
- java.lang.Object
-
- org.hibernate.query.results.complete.CompleteResultBuilderEntityStandard
-
- All Implemented Interfaces:
NativeQuery.ResultNode
,NativeQuery.ReturnableResultNode
,NativeQuery.RootReturn
,CompleteResultBuilder
,CompleteResultBuilderEntityValued
,ModelPartReference
,ModelPartReferenceEntity
,ResultBuilder
,ResultBuilderEntityValued
public class CompleteResultBuilderEntityStandard extends Object implements CompleteResultBuilderEntityValued, NativeQuery.RootReturn
-
-
Constructor Summary
Constructors Constructor Description CompleteResultBuilderEntityStandard(String tableAlias, NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, BasicValuedFetchBuilder discriminatorFetchBuilder, HashMap<String,FetchBuilder> explicitFetchBuilderMap)
-
Method Summary
-
-
-
Constructor Detail
-
CompleteResultBuilderEntityStandard
public CompleteResultBuilderEntityStandard(String tableAlias, NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, BasicValuedFetchBuilder discriminatorFetchBuilder, HashMap<String,FetchBuilder> explicitFetchBuilderMap)
-
-
Method Detail
-
getJavaType
public Class<?> getJavaType()
- Specified by:
getJavaType
in interfaceResultBuilder
-
getNavigablePath
public NavigablePath getNavigablePath()
- Specified by:
getNavigablePath
in interfaceModelPartReference
- Specified by:
getNavigablePath
in interfaceNativeQuery.RootReturn
-
getReferencedPart
public EntityMappingType getReferencedPart()
Description copied from interface:ModelPartReference
The part of the domain model that is referenced- Specified by:
getReferencedPart
in interfaceCompleteResultBuilderEntityValued
- Specified by:
getReferencedPart
in interfaceModelPartReference
- Specified by:
getReferencedPart
in interfaceModelPartReferenceEntity
-
getTableAlias
public String getTableAlias()
- Specified by:
getTableAlias
in interfaceNativeQuery.RootReturn
-
getDiscriminatorAlias
public String getDiscriminatorAlias()
- Specified by:
getDiscriminatorAlias
in interfaceNativeQuery.RootReturn
-
getEntityMapping
public EntityMappingType getEntityMapping()
- Specified by:
getEntityMapping
in interfaceNativeQuery.RootReturn
-
getLockMode
public LockMode getLockMode()
- Specified by:
getLockMode
in interfaceNativeQuery.RootReturn
-
setLockMode
public NativeQuery.RootReturn setLockMode(LockMode lockMode)
Description copied from interface:NativeQuery.RootReturn
Set the lock mode for this return.- Specified by:
setLockMode
in interfaceNativeQuery.RootReturn
- Parameters:
lockMode
- The new lock mode.- Returns:
this
, for method chaining
-
addIdColumnAliases
public NativeQuery.RootReturn addIdColumnAliases(String... aliases)
- Specified by:
addIdColumnAliases
in interfaceNativeQuery.RootReturn
-
setDiscriminatorAlias
public NativeQuery.RootReturn setDiscriminatorAlias(String columnAlias)
Description copied from interface:NativeQuery.RootReturn
Name the column alias that identifies the entity's discriminator.- Specified by:
setDiscriminatorAlias
in interfaceNativeQuery.RootReturn
- Parameters:
columnAlias
- The discriminator column alias- Returns:
this
, for method chaining
-
addProperty
public NativeQuery.RootReturn addProperty(String propertyName, String columnAlias)
Description copied from interface:NativeQuery.RootReturn
Add a simple property-to-one-column mapping.- Specified by:
addProperty
in interfaceNativeQuery.RootReturn
- Parameters:
propertyName
- The name of the property.columnAlias
- The name of the column- Returns:
this
, for method chaining
-
addProperty
public NativeQuery.ReturnProperty addProperty(String propertyName)
Description copied from interface:NativeQuery.RootReturn
Add a property, presumably with more than one column.- Specified by:
addProperty
in interfaceNativeQuery.RootReturn
- Parameters:
propertyName
- The name of the property.- Returns:
- The config object for further control.
-
cacheKeyInstance
public ResultBuilder cacheKeyInstance()
- Specified by:
cacheKeyInstance
in interfaceResultBuilder
-
buildResult
public EntityResult buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String,String,DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState)
- Specified by:
buildResult
in interfaceResultBuilder
- Specified by:
buildResult
in interfaceResultBuilderEntityValued
-
visitFetchBuilders
public void visitFetchBuilders(BiConsumer<String,FetchBuilder> consumer)
- Specified by:
visitFetchBuilders
in interfaceResultBuilder
-
-