Class ResultSetMappingImpl
java.lang.Object
org.hibernate.query.results.internal.ResultSetMappingImpl
- All Implemented Interfaces:
ResultSetMapping,JdbcValuesMappingProducer
ResultSetMapping implementation used while building
ResultSetMapping references.
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetMappingImpl(String mappingIdentifier) ResultSetMappingImpl(String mappingIdentifier, boolean isDynamic) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffectedTableNames(Set<String> affectedTableNames, SessionFactoryImplementor sessionFactory) voidaddLegacyFetchBuilder(LegacyFetchBuilder fetchBuilder) Add a legacy fetch buildervoidaddResultBuilder(ResultBuilder resultBuilder) Add a builderbooleanAn identifier for the mappingintThe number of result builders currently associated with this mappingThe result builders currently associated with this mappinginthashCode()booleanIndicates whether the mapping is dynamic perResultSetMappingresolve(JdbcValuesMetadata jdbcResultsMetadata, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory) Resolve the JdbcValuesMapping.Create a memento from this mapping.voidvisitLegacyFetchBuilders(Consumer<LegacyFetchBuilder> resultBuilderConsumer) Visit the "legacy" fetch builders.voidvisitResultBuilders(BiConsumer<Integer, ResultBuilder> resultBuilderConsumer) Visit each result builder
-
Constructor Details
-
ResultSetMappingImpl
-
ResultSetMappingImpl
-
-
Method Details
-
getMappingIdentifier
Description copied from interface:ResultSetMappingAn identifier for the mapping- Specified by:
getMappingIdentifierin interfaceResultSetMapping
-
isDynamic
public boolean isDynamic()Description copied from interface:ResultSetMappingIndicates whether the mapping is dynamic perResultSetMapping- Specified by:
isDynamicin interfaceResultSetMapping
-
getNumberOfResultBuilders
public int getNumberOfResultBuilders()Description copied from interface:ResultSetMappingThe number of result builders currently associated with this mapping- Specified by:
getNumberOfResultBuildersin interfaceResultSetMapping
-
getResultBuilders
Description copied from interface:ResultSetMappingThe result builders currently associated with this mapping- Specified by:
getResultBuildersin interfaceResultSetMapping
-
visitResultBuilders
Description copied from interface:ResultSetMappingVisit each result builder- Specified by:
visitResultBuildersin interfaceResultSetMapping
-
visitLegacyFetchBuilders
Description copied from interface:ResultSetMappingVisit the "legacy" fetch builders. Historically these mappings in Hibernate were defined such that results and fetches are unaware of each other. So whileResultBuilderencapsulates the fetches (seeResultBuilder.visitFetchBuilders(java.util.function.BiConsumer<org.hibernate.sql.results.graph.Fetchable, org.hibernate.query.results.FetchBuilder>)), fetches defined in the legacy way are unassociated to their "parent".- Specified by:
visitLegacyFetchBuildersin interfaceResultSetMapping
-
addResultBuilder
Description copied from interface:ResultSetMappingAdd a builder- Specified by:
addResultBuilderin interfaceResultSetMapping
-
addLegacyFetchBuilder
Description copied from interface:ResultSetMappingAdd a legacy fetch builder- Specified by:
addLegacyFetchBuilderin interfaceResultSetMapping
-
addAffectedTableNames
public void addAffectedTableNames(Set<String> affectedTableNames, SessionFactoryImplementor sessionFactory) - Specified by:
addAffectedTableNamesin interfaceJdbcValuesMappingProducer
-
resolve
public JdbcValuesMapping resolve(JdbcValuesMetadata jdbcResultsMetadata, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory) Description copied from interface:JdbcValuesMappingProducerResolve the JdbcValuesMapping. This involves resolving theDomainResultandFetch- Specified by:
resolvein interfaceJdbcValuesMappingProducer
-
toMemento
Description copied from interface:ResultSetMappingCreate a memento from this mapping.- Specified by:
toMementoin interfaceResultSetMapping
-
cacheKeyInstance
- Specified by:
cacheKeyInstancein interfaceJdbcValuesMappingProducer- Specified by:
cacheKeyInstancein interfaceResultSetMapping
-
hashCode
public int hashCode() -
equals
-