Class CompleteResultBuilderEntityJpa
- java.lang.Object
-
- org.hibernate.query.results.complete.CompleteResultBuilderEntityJpa
-
- All Implemented Interfaces:
CompleteResultBuilder
,CompleteResultBuilderEntityValued
,ModelPartReference
,ModelPartReferenceEntity
,ResultBuilder
,ResultBuilderEntityValued
public class CompleteResultBuilderEntityJpa extends Object implements CompleteResultBuilderEntityValued
CompleteResultBuilderEntityValued implementation specific to JPA. In JPA mappings, fetches contains also entity-identifier-related fetches - so we will need to look for that one here in the fetches and handle it specially. This differs from Hibernate's specific mapping declarations which split identifier related fetches separately
-
-
Constructor Summary
Constructors Constructor Description CompleteResultBuilderEntityJpa(NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, BasicValuedFetchBuilder discriminatorFetchBuilder, HashMap<String,FetchBuilder> explicitFetchBuilderMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityResult
buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String,String,DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState)
ResultBuilder
cacheKeyInstance()
boolean
equals(Object o)
Class<?>
getJavaType()
NavigablePath
getNavigablePath()
EntityMappingType
getReferencedPart()
The part of the domain model that is referencedint
hashCode()
void
visitFetchBuilders(BiConsumer<String,FetchBuilder> consumer)
-
-
-
Constructor Detail
-
CompleteResultBuilderEntityJpa
public CompleteResultBuilderEntityJpa(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
-
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
-
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
-
-