org.hibernate.loader.entity
Class DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader

java.lang.Object
  extended by org.hibernate.loader.entity.BatchingEntityLoader
      extended by org.hibernate.loader.entity.DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader
All Implemented Interfaces:
UniqueEntityLoader
Enclosing class:
DynamicBatchingEntityLoaderBuilder

public static class DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader
extends BatchingEntityLoader


Constructor Summary
DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
           
DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
           
 
Method Summary
 Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)
          Load an entity instance by id.
 
Methods inherited from class org.hibernate.loader.entity.BatchingEntityLoader
buildQueryParameters, doBatchLoad, getObjectFromList, load, persister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader

public DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader(OuterJoinLoadable persister,
                                                                      int maxBatchSize,
                                                                      LockMode lockMode,
                                                                      SessionFactoryImplementor factory,
                                                                      LoadQueryInfluencers loadQueryInfluencers)

DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader

public DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader(OuterJoinLoadable persister,
                                                                      int maxBatchSize,
                                                                      LockOptions lockOptions,
                                                                      SessionFactoryImplementor factory,
                                                                      LoadQueryInfluencers loadQueryInfluencers)
Method Detail

load

public Object load(Serializable id,
                   Object optionalObject,
                   SessionImplementor session,
                   LockOptions lockOptions)
Description copied from interface: UniqueEntityLoader
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


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