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

public abstract Class BatchingEntityLoader

extends Object
implements UniqueEntityLoader
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.entity.UniqueEntityLoader
Known Direct Subclasses
org.hibernate.loader.entity.plan.DynamicBatchingEntityLoader, org.hibernate.loader.entity.plan.LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader, org.hibernate.loader.entity.plan.PaddedBatchingEntityLoader
Imports
java.io.Serializable, java.sql.SQLException, java.util.Arrays, .List, org.hibernate.LockOptions, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor, org.hibernate.loader.Loader, org.hibernate.loader.entity.UniqueEntityLoader, org.hibernate.persister.entity.EntityPersister, org.hibernate.pretty.MessageHelper, org.hibernate.type.Type, org.jboss.logging.Logger

The base contract for UniqueEntityLoader implementations capable of performing batch-fetch loading of entities using multiple primary key values in the SQL WHERE clause.

Typically these are

Authors
Gavin King, Steve Ebersole
See Also
org.hibernate.loader.entity.BatchingEntityLoaderBuilder, org.hibernate.loader.entity.UniqueEntityLoader

Field Summary

Modifier and TypeField and Description
private static final Logger
private final EntityPersister

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected QueryParameters
buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)

protected Object
doBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)

protected Object
public Object
load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)

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

Load an entity instance.
public EntityPersister
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
persisterback to summary
private final EntityPersister persister

Constructor Detail

BatchingEntityLoaderback to summary
public BatchingEntityLoader(EntityPersister persister)

Method Detail

buildQueryParametersback to summary
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
doBatchLoadback to summary
protected Object doBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
getObjectFromListback to summary
protected Object getObjectFromList(List<E> results, Serializable id, SharedSessionContractImplementor session)
loadback to summary
public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)

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
persisterback to summary
public EntityPersister persister()