Class SinglePathQueryBuilderImpl<T>
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.QueryBuilderBaseImpl<SinglePathQueryBuilder<T>,CriteriaQueryWrapper<T>>
ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilder<SinglePathQueryBuilder<T>,Object[],CriteriaQueryWrapper<T>>
ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl<SinglePathQueryBuilder<T>,T,CriteriaQueryWrapper<T>>
ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractPathQueryBuilder<SinglePathQueryBuilder<T>,T,CriteriaQueryWrapper<T>>
ch.tocco.nice2.persist.core.impl.hibernate.query.SinglePathQueryBuilderImpl<T>
- Type Parameters:
T
- Result type that should be returned from this query builder.
- All Implemented Interfaces:
CriteriaQueryBuilder<SinglePathQueryBuilder<T>,
,T, CriteriaQueryWrapper<T>> QueryBuilderBase<SinglePathQueryBuilder<T>,
,CriteriaQueryWrapper<T>> SinglePathQueryBuilder<T>
public class SinglePathQueryBuilderImpl<T>
extends AbstractPathQueryBuilder<SinglePathQueryBuilder<T>,T,CriteriaQueryWrapper<T>>
implements SinglePathQueryBuilder<T>
Query builder that returns exactly one path as result.
The result type must be compatible with the property that is referenced by
setPath(String)
.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractPathQueryBuilder
AbstractPathQueryBuilder.CustomSelectionCriteriaQueryWrapper
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.AbstractPathQueryBuilder
customSelection
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
ConstructorDescriptionSinglePathQueryBuilderImpl
(BinaryDataAccessor binaryDataAccessor, org.hibernate.Session session, Class<? extends Entity> entityClass, Class<T> resultType, 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 CriteriaQueryWrapper
<T> doBuild()
protected SinglePathQueryBuilderImpl
<T> self()
Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractPathQueryBuilder
clearSelection
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, doInsecure, getPredicates, initializationCompleted, 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
addOrder, addOrder, applyConfiguration, getQueryRoot, setLimit, setOffset
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
-
Constructor Details
-
SinglePathQueryBuilderImpl
public SinglePathQueryBuilderImpl(BinaryDataAccessor binaryDataAccessor, org.hibernate.Session session, Class<? extends Entity> entityClass, Class<T> resultType, 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
-
setPath
- Specified by:
setPath
in interfaceSinglePathQueryBuilder<T>
-
doBuild
- Specified by:
doBuild
in classQueryBuilderBaseImpl<SinglePathQueryBuilder<T>,
CriteriaQueryWrapper<T>>
-
self
- Specified by:
self
in classQueryBuilderBaseImpl<SinglePathQueryBuilder<T>,
CriteriaQueryWrapper<T>>
-