org.hibernate.loader.entity
Class BatchingEntityLoader

java.lang.Object
  extended by org.hibernate.loader.entity.BatchingEntityLoader
All Implemented Interfaces:
UniqueEntityLoader
Direct Known Subclasses:
DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader, LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader

public abstract class BatchingEntityLoader
extends Object
implements UniqueEntityLoader

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

See Also:
BatchingEntityLoaderBuilder, UniqueEntityLoader

Constructor Summary
BatchingEntityLoader(EntityPersister persister)
           
 
Method Summary
protected  QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
           
protected  Object doBatchLoad(Serializable id, Loader loaderToUse, SessionImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
           
protected  Object getObjectFromList(List results, Serializable id, SessionImplementor session)
           
 Object load(Serializable id, Object optionalObject, SessionImplementor session)
          Deprecated. 
 EntityPersister persister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.loader.entity.UniqueEntityLoader
load
 

Constructor Detail

BatchingEntityLoader

public BatchingEntityLoader(EntityPersister persister)
Method Detail

persister

public EntityPersister persister()

load

@Deprecated
public Object load(Serializable id,
                              Object optionalObject,
                              SessionImplementor session)
Deprecated. 

Description copied from interface: UniqueEntityLoader
Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.

Specified by:
load in interface UniqueEntityLoader

buildQueryParameters

protected QueryParameters buildQueryParameters(Serializable id,
                                               Serializable[] ids,
                                               Object optionalObject,
                                               LockOptions lockOptions)

getObjectFromList

protected Object getObjectFromList(List results,
                                   Serializable id,
                                   SessionImplementor session)

doBatchLoad

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


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.