Package org.hibernate.query.results
Interface ResultBuilder
- All Superinterfaces:
GraphNodeBuilder
- All Known Subinterfaces:
CompleteResultBuilder
,CompleteResultBuilderBasicValued
,CompleteResultBuilderCollection
,CompleteResultBuilderEntityValued
,DynamicResultBuilder
,DynamicResultBuilderBasic
,DynamicResultBuilderEntity
,ImplicitModelPartResultBuilder
,ResultBuilderBasicValued
,ResultBuilderEmbeddable
,ResultBuilderEntityValued
,ResultBuilderInstantiationValued
- All Known Implementing Classes:
CompleteResultBuilderBasicModelPart
,CompleteResultBuilderBasicValuedConverted
,CompleteResultBuilderBasicValuedStandard
,CompleteResultBuilderCollectionStandard
,CompleteResultBuilderEntityJpa
,CompleteResultBuilderEntityStandard
,CompleteResultBuilderInstantiation
,DynamicResultBuilderAttribute
,DynamicResultBuilderBasicConverted
,DynamicResultBuilderBasicStandard
,DynamicResultBuilderEntityCalculated
,DynamicResultBuilderEntityStandard
,DynamicResultBuilderInstantiation
,EntityDomainResultBuilder
,GeneratedValueBasicResultBuilder
,ImplicitModelPartResultBuilderBasic
,ImplicitModelPartResultBuilderEmbeddable
,ImplicitModelPartResultBuilderEntity
,ImplicitResultClassBuilder
,ScalarDomainResultBuilder
Responsible for building a single
DomainResult
.
Given the following HQL for illustration,
select b from Book b join fetch b.authorswe have a single result : `Book(b)`
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDomainResult<?>
buildResult
(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Build a resultClass<?>
The Java type of the value returned for a result built by this builder.default void
visitFetchBuilders
(BiConsumer<Fetchable, FetchBuilder> consumer)
-
Method Details
-
buildResult
DomainResult<?> buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Build a result- Parameters:
jdbcResultsMetadata
- The JDBC values and metadataresultPosition
- The position in the domain results for the result to be builtdomainResultCreationState
- Access to useful stuff
-
getJavaType
Class<?> getJavaType()The Java type of the value returned for a result built by this builder. -
cacheKeyInstance
ResultBuilder cacheKeyInstance() -
visitFetchBuilders
-