Class AbstractPathQueryBuilder<QB extends CriteriaQueryBuilder<QB,RT,QW>,RT,QW extends CriteriaQueryWrapper<RT>>
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.QueryBuilderBaseImpl<QB,QW>
ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilder<QB,Object[],QW>
ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl<QB,RT,QW>
ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractPathQueryBuilder<QB,RT,QW>
- Type Parameters:
QB
- Type of the actualAbstractPathQueryBuilder
implementation so that it can be returned from the builder methodsRT
- Type that is returned fromCriteriaQueryWrapper.getResultList()
andCriteriaQueryWrapper.uniqueResult()
(might be different from the query type)QW
- Type of returned Criteria Query Wrapper implementation
- All Implemented Interfaces:
CriteriaQueryBuilder<QB,
,RT, QW> QueryBuilderBase<QB,
QW>
- Direct Known Subclasses:
PathQueryBuilderImpl
,PrimaryKeyQueryBuilderImpl
,SinglePathQueryBuilderImpl
public abstract class AbstractPathQueryBuilder<QB extends CriteriaQueryBuilder<QB,RT,QW>,RT,QW extends CriteriaQueryWrapper<RT>>
extends CriteriaQueryBuilderImpl<QB,RT,QW>
Abstract base class for query builders that do not return
Entity
instances, but use a CustomSelection
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl
CriteriaQueryBuilderImpl.AbstractCriteriaQueryWrapper
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl
ARRAY_EQUIVALENCE
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilder
criteriaBuilder, jdbcFunctions, parameterProviders, parameters, predicateFactory, query, queryRoot, session, subqueryFactory
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.QueryBuilderBaseImpl
collector, conditionFactory, dataModel, fieldResolver, insecureEnabled, interceptors, predicates, queryHints, typeManager
-
Constructor Summary
ConstructorDescriptionAbstractPathQueryBuilder
(BinaryDataAccessor binaryDataAccessor, org.hibernate.Session session, Class<? extends Entity> entityClass, List<QueryBuilderInterceptor> interceptors, TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, Map<String, JdbcFunction> jdbcFunctions, Map<String, ParameterProvider<?>> parameterProviders, Map<String, ?> queryHints, InsecureOrderPathsRegistry insecureOrderPathsRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected QB
Resets the selection of the query back to the standard (the root entity).Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl
addOrder, addOrder, applyConfiguration, getPermission, setLimit, setOffset
Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilder
addParameter, applyParametersToQuery, createQuery, getCriteriaBuilder, getPredicateFactory, getQueryDistinctStrategy, getQueryRoot, getSubqueryFactory, logNewQueryError
Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.QueryBuilderBaseImpl
build, doBuild, doInsecure, getPredicates, initializationCompleted, self, where, where, where, where, whereInsecure, whereInsecure, whereInsecure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.builder.CriteriaQueryBuilder
getQueryRoot
Methods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.builder.QueryBuilderBase
addParameter, build, getCriteriaBuilder, getPredicates, getSubqueryFactory, where, where, where, where, whereInsecure, whereInsecure, whereInsecure
-
Field Details
-
customSelection
-
-
Constructor Details
-
AbstractPathQueryBuilder
public AbstractPathQueryBuilder(BinaryDataAccessor binaryDataAccessor, org.hibernate.Session session, Class<? extends Entity> entityClass, List<QueryBuilderInterceptor> interceptors, TypeManager typeManager, DataModel dataModel, ConditionFactory conditionFactory, FieldResolver fieldResolver, Map<String, JdbcFunction> jdbcFunctions, Map<String, ParameterProvider<?>> parameterProviders, Map<String, ?> queryHints, InsecureOrderPathsRegistry insecureOrderPathsRegistry)
-
-
Method Details
-
clearSelection
Resets the selection of the query back to the standard (the root entity). However note that the potential joins created by the previous selection cannot be reverted!
-