Interface QueryBuilderBase<QB extends QueryBuilderBase<QB,QW>,QW>
- All Known Subinterfaces:
CountQueryBuilder
,CriteriaDeleteBuilder
,CriteriaQueryBuilder<QB,
,RT, QW> EntityQueryBuilder<T>
,PathQueryBuilder<T>
,PrimaryKeyQueryBuilder
,SinglePathQueryBuilder<T>
,SubqueryBuilder<T>
- All Known Implementing Classes:
AbstractCriteriaBuilder
,AbstractPathQueryBuilder
,CriteriaCountQueryBuilder
,CriteriaDeleteBuilderImpl
,CriteriaQueryBuilderImpl
,EntityQueryBuilderImpl
,PathQueryBuilderImpl
,PrimaryKeyQueryBuilderImpl
,QueryBuilderBaseImpl
,SinglePathQueryBuilderImpl
,SubqueryBuilderImpl
public interface QueryBuilderBase<QB extends QueryBuilderBase<QB,QW>,QW>
Base interface for query builders.
-
Method Summary
Modifier and TypeMethodDescriptionaddParameter
(String name, Object value) If a condition with an explicit parameter expression was added to the query, this method can be used to set the parameter values.build()
This method should be called when the query configuration is complete.List
<jakarta.persistence.criteria.Predicate> jakarta.persistence.criteria.From
<?, ?> where
(PredicateBuilder predicateBuilder) where
(jakarta.persistence.criteria.Predicate... predicate) whereInsecure
(Node condition) Conditions added through this method are *not* decorated with any security conditions.whereInsecure
(PredicateBuilder predicateBuilder) whereInsecure
(Condition... condition) Conditions added through this method are *not* decorated with any security conditions.
-
Method Details
-
getCriteriaBuilder
CriteriaBuilderWrapper getCriteriaBuilder()- Returns:
- the
CriteriaBuilder
that can be used to create conditions that can be passed towhere(Predicate...)
-
getQueryRoot
jakarta.persistence.criteria.From<?,?> getQueryRoot()- Returns:
- the
Root
orJoin
instance that represents the root entity of the query
-
getSubqueryFactory
PredicateBuilder.SubqueryFactory getSubqueryFactory()- Returns:
- an instance of
PredicateBuilder.SubqueryFactory
that can be used to create subqueries
-
getPredicates
List<jakarta.persistence.criteria.Predicate> getPredicates()- Returns:
- all conditions of the query
-
addParameter
If a condition with an explicit parameter expression was added to the query, this method can be used to set the parameter values. -
where
-
whereInsecure
-
where
-
where
-
whereInsecure
Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method. -
where
-
whereInsecure
Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method. -
build
QW build()This method should be called when the query configuration is complete.QueryBuilderInterceptor
are also called at this point.- Returns:
- an object that allows to access the query results
-