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

public Class DynamicBatchingEntityLoader

extends BatchingEntityLoader
Class Inheritance
Imports
java.io.Serializable, java.util.List, org.hibernate.LockOptions, org.hibernate.engine.internal.BatchFetchQueueHelper, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.persister.entity.OuterJoinLoadable, org.hibernate.pretty.MessageHelper, org.jboss.logging.Logger

Batching entity loader using dynamic where-clause

Field Summary

Modifier and TypeField and Description
private final LoadQueryInfluencers
private static final Logger
private final int

Constructor Summary

AccessConstructor and Description
public
DynamicBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, 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

loadQueryInfluencersback to summary
private final LoadQueryInfluencers loadQueryInfluencers
logback to summary
private static final Logger log

Hides org.hibernate.loader.entity.plan.BatchingEntityLoader.log.

maxBatchSizeback to summary
private final int maxBatchSize

Constructor Detail

DynamicBatchingEntityLoaderback to summary
public DynamicBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, 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