Package org.infinispan.query.dsl
Interface QueryFactory
-
public interface QueryFactoryFactory for query DSL objects. Query construction starts here, usually by invoking thefrom(java.lang.Class<?>)method which returns aQueryBuildercapable of constructingQueryobjects. The other methods are use for creating sub-conditions.- Since:
- 6.0
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> Query<T>create(String queryString)Creates a Query based on an Ickle query string.<T> Query<T>create(String queryString, IndexedQueryMode queryMode)Deprecated.since 11.QueryBuilderfrom(Class<?> entityType)Deprecated.since 10.1.QueryBuilderfrom(String entityType)Deprecated.since 10.1.FilterConditionEndContexthaving(String attributePath)Deprecated.since 10.1.FilterConditionEndContexthaving(Expression expression)Deprecated.since 10.1.FilterConditionBeginContextnot()Deprecated.since 10.1.FilterConditionContextnot(FilterConditionContext fcc)Deprecated.since 10.1.
-
-
-
Method Detail
-
create
<T> Query<T> create(String queryString)
Creates a Query based on an Ickle query string.- Returns:
- a query
-
create
@Deprecated <T> Query<T> create(String queryString, IndexedQueryMode queryMode)
Deprecated.since 11.IndexedQueryModeis now automatically selected. Usecreate(String)instead.Creates a Query based on an Ickle query string.- Parameters:
queryMode- theIndexedQueryModedictating the indexed query execution mode if applicable.
-
from
@Deprecated QueryBuilder from(Class<?> entityType)
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a QueryBuilder for the given entity type.- Parameters:
entityType- the Class of the entity- Returns:
- a builder capable of creating queries for the specified entity type
-
from
@Deprecated QueryBuilder from(String entityType)
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a QueryBuilder for the given entity type.- Parameters:
entityType- fully qualified entity type name- Returns:
- a builder capable of creating queries for the specified entity type
-
having
@Deprecated FilterConditionEndContext having(Expression expression)
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a condition on the given attribute path that is to be completed later by using it as a sub-condition.- Parameters:
expression- a path Expression- Returns:
- the incomplete sub-condition
-
having
@Deprecated FilterConditionEndContext having(String attributePath)
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a condition on the given attribute path that is to be completed later by using it as a sub-condition.- Parameters:
attributePath- the attribute path- Returns:
- the incomplete sub-condition
-
not
@Deprecated FilterConditionBeginContext not()
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a negated condition that is to be completed later by using it as a sub-condition.- Returns:
- the incomplete sub-condition
-
not
@Deprecated FilterConditionContext not(FilterConditionContext fcc)
Deprecated.since 10.1. See deprecation note onQueryBuilder.Creates a negated condition based on a given sub-condition. The negation is grouped.- Returns:
- the incomplete sub-condition
-
-