Class QueryBuilderBaseImpl<QB extends QueryBuilderBase<QB,QW>,QW>  
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.QueryBuilderBaseImpl<QB,QW> 
- Type Parameters:
- QB- Type of the actual- QueryBuilderBaseimplementation so that it can be returned from the builder methods
- QW- Type that should be returned from the- build()method
- All Implemented Interfaces:
- QueryBuilderBase<QB,- QW> 
- Direct Known Subclasses:
- AbstractCriteriaBuilder,- SubqueryBuilderImpl
public abstract class QueryBuilderBaseImpl<QB extends QueryBuilderBase<QB,QW>,QW>  
extends Object
implements QueryBuilderBase<QB,QW> 
Base class for query builders.
 Manages a list of 
Predicate instances, which can be added in the form of a Predicate, a PredicateBuilder,
 a Node or a Condition.
 When QueryBuilderBase.build() is called finalize the query, the QueryBuilderInterceptor are called.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final ParameterCollectorprotected final ConditionFactoryprotected final DataModelprotected final FieldResolverprotected final AtomicBooleanprotected final List<QueryBuilderInterceptor> protected final List<jakarta.persistence.criteria.Predicate> protected final TypeManager
- 
Constructor SummaryConstructorsConstructorDescriptionQueryBuilderBaseImpl(TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, List<QueryBuilderInterceptor> interceptors, Map<String, ?> queryHints) QueryBuilderBaseImpl(TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, List<QueryBuilderInterceptor> interceptors, Map<String, ?> queryHints, ParameterCollector parameterCollector, AtomicBoolean insecureEnabled) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal QWbuild()This method should be called when the query configuration is complete.protected abstract QWdoBuild()protected <T> TdoInsecure(Supplier<T> supplier) protected abstract QueryBuilderInterceptor.QueryBuilderTypeprotected abstract PredicateFactoryList<jakarta.persistence.criteria.Predicate> protected final voidprotected abstract QBself()where(PredicateBuilder predicateBuilder) where(jakarta.persistence.criteria.Predicate... predicates) 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.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.builder.QueryBuilderBaseaddParameter, getCriteriaBuilder, getQueryRoot, getSubqueryFactory, where
- 
Field Details- 
typeManager
- 
dataModel
- 
conditionFactory
- 
fieldResolver
- 
collector
- 
interceptors
- 
predicates
- 
queryHints
- 
insecureEnabled
 
- 
- 
Constructor Details- 
QueryBuilderBaseImplpublic QueryBuilderBaseImpl(TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, List<QueryBuilderInterceptor> interceptors, Map<String, ?> queryHints) 
- 
QueryBuilderBaseImplpublic QueryBuilderBaseImpl(TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, List<QueryBuilderInterceptor> interceptors, Map<String, ?> queryHints, ParameterCollector parameterCollector, AtomicBoolean insecureEnabled) 
 
- 
- 
Method Details- 
getPermission
- 
getPredicateFactory
- 
where- Specified by:
- wherein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
whereInsecure- Specified by:
- whereInsecurein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
where- Specified by:
- wherein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
where- Specified by:
- wherein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
whereInsecureDescription copied from interface:QueryBuilderBaseConditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
- whereInsecurein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
where- Specified by:
- wherein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
whereInsecureDescription copied from interface:QueryBuilderBaseConditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
- whereInsecurein interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
 
- 
doInsecure
- 
getPredicates- Specified by:
- getPredicatesin interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
- Returns:
- all conditions of the query
 
- 
self
- 
initializationCompletedprotected final void initializationCompleted()
- 
buildDescription copied from interface:QueryBuilderBaseThis method should be called when the query configuration is complete.QueryBuilderInterceptorare also called at this point.- Specified by:
- buildin interface- QueryBuilderBase<QB extends QueryBuilderBase<QB,- QW>, - QW> 
- Returns:
- an object that allows to access the query results
 
- 
doBuild
 
-