Package org.hibernate.query.results
Interface ResultBuilder
- All Superinterfaces:
GraphNodeBuilder
- All Known Subinterfaces:
ResultBuilderBasicValued
,ResultBuilderEmbeddable
,ResultBuilderEntityValued
,ResultBuilderInstantiationValued
- All Known Implementing Classes:
GeneratedValueBasicResultBuilder
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.- See Also:
-
cacheKeyInstance
ResultBuilder cacheKeyInstance() -
visitFetchBuilders
-