public class ConnectedQueryContextBuilder extends Object implements QueryContextBuilder
| Modifier and Type | Class and Description |
|---|---|
class |
ConnectedQueryContextBuilder.HSearchEntityContext |
| Constructor and Description |
|---|
ConnectedQueryContextBuilder(ExtendedSearchIntegrator factory) |
| Modifier and Type | Method and Description |
|---|---|
EntityContext |
forEntity(Class<?> entityType)
Creates an entity context which can be used to obtain a
QueryBuilder. |
public ConnectedQueryContextBuilder(ExtendedSearchIntegrator factory)
public EntityContext forEntity(Class<?> entityType)
QueryContextBuilderQueryBuilder.
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.
forEntity in interface QueryContextBuilderentityType - entity type used for meta data retrieval during query creationCopyright © 2006–2016 Hibernate. All rights reserved.