public class

BatchingEntityLoader

extends Object
implements UniqueEntityLoader
java.lang.Object
   ↳ org.hibernate.loader.entity.BatchingEntityLoader

Class Overview

"Batch" loads entities, using multiple primary key values in the SQL where clause.

See Also

Summary

Public Constructors
BatchingEntityLoader(EntityPersister persister, int[] batchSizes, Loader[] loaders)
Public Methods
static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
static UniqueEntityLoader createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)
Load an entity instance by id.
Object load(Serializable id, Object optionalObject, SessionImplementor session)
Load an entity instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.loader.entity.UniqueEntityLoader

Public Constructors

public BatchingEntityLoader (EntityPersister persister, int[] batchSizes, Loader[] loaders)

Public Methods

public static UniqueEntityLoader createBatchingEntityLoader (OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

public static UniqueEntityLoader createBatchingEntityLoader (OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

public Object load (Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)

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 The id to be loaded
optionalObject The (optional) entity instance in to which to load the state
session The session from which the request originated
lockOptions The lock options.
Returns
  • The loaded entity

public Object load (Serializable id, Object optionalObject, SessionImplementor session)

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