Package org.infinispan.query.dsl
Interface QueryFactory
-
public interface QueryFactory
Factory for query DSL objects. Query construction starts here, usually by invoking thefrom(java.lang.Class<?>)
method which returns aQueryBuilder
capable of constructingQuery
objects. The other methods are use for creating sub-conditions.- Since:
- 6.0
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Query
create(java.lang.String queryString)
Creates a Query based on an Ickle query string.Query
create(java.lang.String queryString, IndexedQueryMode queryMode)
Creates a Query based on an Ickle query stringQueryBuilder
from(java.lang.Class<?> entityType)
Creates a QueryBuilder for the given entity type.QueryBuilder
from(java.lang.String entityType)
Creates a QueryBuilder for the given entity type.FilterConditionEndContext
having(java.lang.String attributePath)
Creates a condition on the given attribute path that is to be completed later by using it as a sub-condition.FilterConditionEndContext
having(Expression expression)
Creates a condition on the given attribute path that is to be completed later by using it as a sub-condition.FilterConditionBeginContext
not()
Creates a negated condition that is to be completed later by using it as a sub-condition.FilterConditionContext
not(FilterConditionContext fcc)
Creates a negated condition based on a given sub-condition.
-
-
-
Method Detail
-
create
Query create(java.lang.String queryString)
Creates a Query based on an Ickle query string.- Returns:
- a query
-
create
Query create(java.lang.String queryString, IndexedQueryMode queryMode)
Creates a Query based on an Ickle query string- Parameters:
queryMode
- theIndexedQueryMode
dictating the indexed query execution mode if applicable.
-
from
QueryBuilder from(java.lang.Class<?> entityType)
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
QueryBuilder from(java.lang.String entityType)
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
FilterConditionEndContext having(Expression expression)
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
FilterConditionEndContext having(java.lang.String attributePath)
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
FilterConditionBeginContext not()
Creates a negated condition that is to be completed later by using it as a sub-condition.- Returns:
- the incomplete sub-condition
-
not
FilterConditionContext not(FilterConditionContext fcc)
Creates a negated condition based on a given sub-condition. The negation is grouped.- Returns:
- the incomplete sub-condition
-
-