org.hibernate.search.query.hibernate.impl
Class LookupObjectsInitializer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final LookupObjectsInitializer INSTANCE
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