Top Description Inners Fields Constructors Methods
org.hibernate.loader.ast.internal

public Class MultiNaturalIdLoadingBatcher

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.hibernate.LockOptions, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, .SubselectFetch, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.loader.ast.spi.MultiNaturalIdLoadOptions, org.hibernate.metamodel.mapping.EntityMappingType, .ModelPart, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.spi.QueryOptions, org.hibernate.sql.ast.SqlAstTranslatorFactory, org.hibernate.sql.ast.tree.expression.JdbcParameter, org.hibernate.sql.ast.tree.select.SelectStatement, org.hibernate.sql.exec.internal.JdbcParameterBindingsImpl, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect, .JdbcParameterBindings, .JdbcParametersList, org.hibernate.sql.results.internal.RowTransformerStandardImpl, org.hibernate.sql.results.spi.ListResultsConsumer

Batch support for natural-id multi loading

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface

Field Summary

Modifier and TypeField and Description
private final EntityMappingType
private final JdbcParametersList
private final JdbcOperationQuerySelect
private final MultiNaturalIdLoadingBatcher.KeyValueResolver
private final SelectStatement

Constructor Summary

AccessConstructor and Description
public
MultiNaturalIdLoadingBatcher(EntityMappingType entityDescriptor, ModelPart restrictedPart, int batchSize, MultiNaturalIdLoadingBatcher.KeyValueResolver keyValueResolver, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public <E> List<E>
private <E> List<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityDescriptorback to summary
private final EntityMappingType entityDescriptor
jdbcParametersback to summary
private final JdbcParametersList jdbcParameters
jdbcSelectback to summary
private final JdbcOperationQuerySelect jdbcSelect
keyValueResolverback to summary
private final MultiNaturalIdLoadingBatcher.KeyValueResolver keyValueResolver
sqlSelectback to summary
private final SelectStatement sqlSelect

Constructor Detail

MultiNaturalIdLoadingBatcherback to summary
public MultiNaturalIdLoadingBatcher(EntityMappingType entityDescriptor, ModelPart restrictedPart, int batchSize, MultiNaturalIdLoadingBatcher.KeyValueResolver keyValueResolver, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

multiLoadback to summary
public <E> List<E> multiLoad(Object[] naturalIdValues, MultiNaturalIdLoadOptions options, SharedSessionContractImplementor session)
performLoadback to summary
private <E> List<E> performLoad(JdbcParameterBindings jdbcParamBindings, SharedSessionContractImplementor session)
org.hibernate.loader.ast.internal back to summary

pack-priv Interface MultiNaturalIdLoadingBatcher.KeyValueResolver

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public Object
resolveKeyToLoad(Object incoming, SharedSessionContractImplementor session)

Resolve the supported forms of representing the natural-id value to the "true" form - single value for simple natural-ids and an array for compound natural-ids.

Method Detail

resolveKeyToLoadback to summary
public Object resolveKeyToLoad(Object incoming, SharedSessionContractImplementor session)

Resolve the supported forms of representing the natural-id value to the "true" form - single value for simple natural-ids and an array for compound natural-ids. Generally delegates to org.hibernate.metamodel.mapping.NaturalIdMapping#normalizeInput