Top Description Inners Fields Constructors Methods
org.hibernate.loader.entity.plan

public Class LegacyBatchingEntityLoaderBuilder

extends AbstractBatchingEntityLoaderBuilder
Class Inheritance
Imports
java.io.Serializable, java.util.List, org.hibernate.LockMode, .LockOptions, org.hibernate.engine.internal.BatchFetchQueueHelper, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.loader.entity.UniqueEntityLoader, org.hibernate.persister.entity.OuterJoinLoadable

LoadPlan-based implementation of the legacy batch loading strategy
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final LegacyBatchingEntityLoaderBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected UniqueEntityLoader
buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)

Implements abstract org.hibernate.loader.entity.BatchingEntityLoaderBuilder.buildBatchingLoader.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
protected UniqueEntityLoader
buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)

Implements abstract org.hibernate.loader.entity.BatchingEntityLoaderBuilder.buildBatchingLoader.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from org.hibernate.loader.entity.plan.AbstractBatchingEntityLoaderBuilder:
buildNonBatchingLoaderbuildNonBatchingLoader

Field Detail

INSTANCEback to summary
public static final LegacyBatchingEntityLoaderBuilder INSTANCE

Constructor Detail

LegacyBatchingEntityLoaderBuilderback to summary
public LegacyBatchingEntityLoaderBuilder()

Method Detail

buildBatchingLoaderback to summary
protected UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)

Implements abstract org.hibernate.loader.entity.BatchingEntityLoaderBuilder.buildBatchingLoader.

Deprecated

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

Annotations
@Override
buildBatchingLoaderback to summary
protected UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)

Implements abstract org.hibernate.loader.entity.BatchingEntityLoaderBuilder.buildBatchingLoader.

Deprecated

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

Annotations
@Override
org.hibernate.loader.entity.plan back to summary

public Class LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader

extends BatchingEntityLoader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int[]
private final EntityLoader[]

Constructor Summary

AccessConstructor and Description
public
LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
protected
LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Object
load(Serializable
The id to be loaded
id
,
Object
The (optional) entity instance in to which to load the state
optionalObject
,
SharedSessionContractImplementor
The session from which the request originated
session
,
LockOptions
The lock options.
lockOptions
)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.
public Object
Inherited from org.hibernate.loader.entity.plan.BatchingEntityLoader:
buildQueryParametersdoBatchLoadgetObjectFromListloadpersister

Field Detail

batchSizesback to summary
private final int[] batchSizes
loadersback to summary
private final EntityLoader[] loaders

Constructor Detail

LegacyBatchingEntityLoaderback to summary
public LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated

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

LegacyBatchingEntityLoaderback to summary
public LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated

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

LegacyBatchingEntityLoaderback to summary
protected LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated

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

Method Detail

loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)

Implements org.hibernate.loader.entity.UniqueEntityLoader.load.

Doc from org.hibernate.loader.entity.UniqueEntityLoader.load.

Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.

Parameters
id:Serializable

The id to be loaded

optionalObject:Object

The (optional) entity instance in to which to load the state

session:SharedSessionContractImplementor

The session from which the request originated

lockOptions:LockOptions

The lock options.

Returns:Object

The loaded entity

Annotations
@Override
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)

Overrides default org.hibernate.loader.entity.UniqueEntityLoader.load.

Annotations
@Override