public interface QueryFactory<Q extends Query>
QueryFactory.from(java.lang.Class)
method which
returns a QueryBuilder
capable of constructing Query
objects. The other methods are use for creating
sub-conditions.Modifier and Type | Method and Description |
---|---|
QueryBuilder<Q> |
from(Class entityType)
Creates a QueryBuilder for the given entity type.
|
QueryBuilder<Q> |
from(String entityType)
Creates a QueryBuilder for the given entity type.
|
FilterConditionEndContext |
having(String attributePath)
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.
|
QueryBuilder<Q> from(Class entityType)
entityType
- the Class of the entityQueryBuilder<Q> from(String entityType)
entityType
- fully qualified entity type nameFilterConditionEndContext having(String attributePath)
attributePath
- the attribute pathFilterConditionBeginContext not()
FilterConditionContext not(FilterConditionContext fcc)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.