站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

BatchingEntityLoader (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.loader
Class BatchingEntityLoader

java.lang.Object
  extended bynet.sf.hibernate.loader.BatchingEntityLoader
All Implemented Interfaces:
UniqueEntityLoader

public class BatchingEntityLoader
extends Object
implements UniqueEntityLoader

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

Author:
Gavin King
See Also:
EntityLoader

Constructor Summary
BatchingEntityLoader(ClassPersister persister, int batchSize, Loader batchLoader, int smallBatchSize, Loader smallBatchLoader, Loader nonBatchLoader)
           
 
Method Summary
 Object load(SessionImplementor session, Serializable id, Object optionalObject)
          Load an entity instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchingEntityLoader

public BatchingEntityLoader(ClassPersister persister,
                            int batchSize,
                            Loader batchLoader,
                            int smallBatchSize,
                            Loader smallBatchLoader,
                            Loader nonBatchLoader)
Method Detail

load

public Object load(SessionImplementor session,
                   Serializable id,
                   Object optionalObject)
            throws SQLException,
                   HibernateException
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
Throws:
SQLException
HibernateException