org.infinispan.query.backend
Class QueryHelper

java.lang.Object
  extended by org.infinispan.query.backend.QueryHelper

public class QueryHelper
extends Object

This is a TEMPORARY helper class that will be used to add the QueryInterceptor to the chain and provide Classes to Hibernate Search.

This class needs to be instantiated before adding any objects into the Cache. Any objects added before this instantiation will not be indexed.

This class must be instantiated only once however.

However, only one instan This class WILL be removed once other hooks come into Infinispan for versions 4.1 etc.

Since:
4.0
Author:
Navin Surtani

Constructor Summary
QueryHelper(Cache cache, Properties properties, Class... classes)
          Constructor that will take in 3 params and build the searchFactory for Hibernate Search.
 
Method Summary
 Class[] getClasses()
          Simple getter.
 Properties getProperties()
          Simple getter.
 org.hibernate.search.engine.SearchFactoryImplementor getSearchFactory()
          Simple getter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHelper

public QueryHelper(Cache cache,
                   Properties properties,
                   Class... classes)
Constructor that will take in 3 params and build the searchFactory for Hibernate Search.

Once this constructor is called, the user MUST call applyProperties() to set up the interceptors.

Parameters:
cache - - the cache instance.
properties - - Properties
classes - - the Class[] for Hibernate Search.
Method Detail

getSearchFactory

public org.hibernate.search.engine.SearchFactoryImplementor getSearchFactory()
Simple getter.

Returns:
the SearchFactoryImplementor instance being used.

getClasses

public Class[] getClasses()
Simple getter.

Returns:
the class[].

getProperties

public Properties getProperties()
Simple getter.

Returns:
Properties

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.