org.hibernate.search.query.hibernate.impl
Class SecondLevelCacheObjectsInitializer

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

public class SecondLevelCacheObjectsInitializer
extends Object
implements ObjectsInitializer

Check if the entity is available in the second level cache and load it if there before falling back to the delegate method.

Author:
Emmanuel Bernard

Constructor Summary
SecondLevelCacheObjectsInitializer(ObjectsInitializer delegate)
           
 
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
 

Constructor Detail

SecondLevelCacheObjectsInitializer

public SecondLevelCacheObjectsInitializer(ObjectsInitializer delegate)
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