org.hibernate.search.query.dsl.impl
Class ConnectedQueryContextBuilder

java.lang.Object
  extended by org.hibernate.search.query.dsl.impl.ConnectedQueryContextBuilder
All Implemented Interfaces:
QueryContextBuilder

public class ConnectedQueryContextBuilder
extends Object
implements QueryContextBuilder

Assuming connection with the search factory

Author:
Emmanuel Bernard

Nested Class Summary
 class ConnectedQueryContextBuilder.HSearchEntityContext
           
 
Constructor Summary
ConnectedQueryContextBuilder(SearchFactoryImplementor factory)
           
 
Method Summary
 EntityContext forEntity(Class<?> entityType)
          Creates an entity context which can be used to obtain a QueryBuilder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedQueryContextBuilder

public ConnectedQueryContextBuilder(SearchFactoryImplementor factory)
Method Detail

forEntity

public EntityContext forEntity(Class<?> entityType)
Description copied from interface: QueryContextBuilder
Creates an entity context which can be used to obtain a QueryBuilder.

Note that the passed entity type is used to verify field names, transparently apply analyzers and field bridges etc. The query result list, however, is not automatically restricted to the given type. Instead a type filter must be applied when creating the full text query in order to restrict the query result to certain entity types.

Specified by:
forEntity in interface QueryContextBuilder
Parameters:
entityType - entity type used for meta data retrieval during query creation
Returns:
an entity context


Copyright © 2006-2013 Red Hat, Inc. All Rights Reserved