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

Field Summary
static String QUERY_ENABLED_PROPERTY
           
static String QUERY_INDEX_LOCAL_ONLY_PROPERTY
           
 
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
 

Field Detail

QUERY_ENABLED_PROPERTY

public static final String QUERY_ENABLED_PROPERTY
See Also:
Constant Field Values

QUERY_INDEX_LOCAL_ONLY_PROPERTY

public static final String QUERY_INDEX_LOCAL_ONLY_PROPERTY
See Also:
Constant Field Values
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 © 2009 JBoss, a division of Red Hat. All Rights Reserved.