Package org.infinispan.query.dsl
Interface QueryFactory
public interface QueryFactory
Factory for query DSL objects. Query construction starts here, usually by invoking the
from(java.lang.Class<?>)
method which
returns a QueryBuilder
capable of constructing Query
objects. The other methods are use for creating
sub-conditions.
NOTE: Most methods in this class are deprecated, except create(java.lang.String)
. Please do not
use any of the deprecated methods or else you will experience difficulties in porting your code to the new query API
that will be introduced by Infinispan 12.
- Since:
- 6.0
- Author:
- anistor@redhat.com
-
Method Summary
Modifier and TypeMethodDescription<T> Query
<T> Deprecated.Deprecated.since 10.1.Deprecated.since 10.1.Deprecated.since 10.1.having
(Expression expression) Deprecated.since 10.1.not()
Deprecated.since 10.1.Deprecated.since 10.1.
-
Method Details
-
create
Deprecated.useBasicCache.query(String)
insteadCreates a Query based on an Ickle query string.- Returns:
- a query
-
from
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.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.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.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.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.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
-
BasicCache.query(String)
instead