org.hibernate.search.query.hibernate.impl
Class LookupObjectsInitializer

java.lang.Object
  extended by org.hibernate.search.query.hibernate.impl.LookupObjectsInitializer
All Implemented Interfaces:
ObjectsInitializer

public class LookupObjectsInitializer
extends Object
implements ObjectsInitializer

Initializes objects using lookup by it. This approach is useful is a batch size has been set on the entity. Hibernate Session will load objects by batch reducing the number of database roundtrip. Note that the second level cache is naturally first checked in this approach.

Author:
Emmanuel Bernard

Field Summary
static LookupObjectsInitializer INSTANCE
           
 
Method Summary
 void initializeObjects(EntityInfo[] entityInfos, Criteria criteria, Class<?> entityType, SearchFactoryImplementor searchFactoryImplementor, TimeoutManager timeoutManager, Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final LookupObjectsInitializer INSTANCE
Method Detail

initializeObjects

public void initializeObjects(EntityInfo[] entityInfos,
                              Criteria criteria,
                              Class<?> entityType,
                              SearchFactoryImplementor searchFactoryImplementor,
                              TimeoutManager timeoutManager,
                              Session session)
Specified by:
initializeObjects in interface ObjectsInitializer


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved