Package org.hibernate.query.results
Support for defining result-set mappings used in
NativeQuery
and ProcedureCall
/ StoredProcedureQuery
.
These result-set mappings are used to map the values in the JDBC ResultSet
into the query result graph.
NOTE : Handling the different sources of results and fetches is split into multiple packages
and multiple impls for performance reasons. The classes in org.hibernate.query.results.complete
represent result/fetch definitions that are completely known up-front and are faster to
resolve. The definitions in org.hibernate.query.results.dynamic
are built incrementally
via Hibernate's NativeQuery
contract need to resolve themselves
against other dynamic result/fetch definitions and therefore take more resources to resolve. The
classes in org.hibernate.query.results.implicit
represent results that are implied- See Also:
ResultSetMapping
-
Interface Summary Interface Description BasicValuedFetchBuilder FetchBuilder Responsible for building a singleDomainResult
instance as part of the overall mapping of native / procedure query results.ResultBuilder Responsible for building a singleDomainResult
instance as part of the overall mapping of native / procedure query results.ResultBuilderBasicValued Nominal extension to ResultBuilder for cases involving scalar resultsResultBuilderEmbeddable ResultBuilderEntityValued Specialization of ResultBuilder for building an EntityResultResultBuilderInstantiationValued Nominal extension to ResultBuilder for cases involving dynamic-instantiation resultsResultSetMapping Acts as theJdbcValuesMappingProducer
forNativeQuery
orProcedureCall
/StoredProcedureQuery
instances. -
Class Summary Class Description Builders DomainResultCreationStateImpl FromClauseAccessImpl ImplicitAttributeFetchBuilder FetchBuilder used when an explicit mapping was not givenJdbcValuesMappingImpl Implementation of JdbcValuesMapping for native / procedure queriesResultSetMappingImpl ResultSetMappingSqlSelection SqlSelection used inResultSetMapping
resolution.ResultsHelper TableGroupImpl A TableGroup created with regards to a SQL ResultSet mapping -
Exception Summary Exception Description MissingSqlSelectionException Indicates that a column defined as part of a SQL ResultSet mapping was not part of the query's ResultSetPositionalSelectionsNotAllowedException