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

public Class PaddedBatchingEntityLoader

extends BatchingEntityLoader
Class Inheritance
Imports
java.io.Serializable, java.util.List, org.hibernate.HibernateException, .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

Batching entity loader using padded where-clause

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PaddedBatchingEntityLoader(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
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
private void
validate(int max)

Inherited from org.hibernate.loader.entity.plan.BatchingEntityLoader:
buildQueryParametersdoBatchLoadgetObjectFromListpersister

Field Detail

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

Constructor Detail

PaddedBatchingEntityLoaderback to summary
public PaddedBatchingEntityLoader(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)

Overrides org.hibernate.loader.entity.plan.BatchingEntityLoader.load.

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

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

Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.

Annotations
@Override
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
validateback to summary
private void validate(int max)