Interface PathQueryBuilder<T>
- Type Parameters:
T
- the return type of the query builder.
- All Superinterfaces:
CriteriaQueryBuilder<PathQueryBuilder<T>,
,T, CriteriaQueryWrapper<T>> QueryBuilderBase<PathQueryBuilder<T>,
CriteriaQueryWrapper<T>>
- All Known Implementing Classes:
PathQueryBuilderImpl
public interface PathQueryBuilder<T>
extends CriteriaQueryBuilder<PathQueryBuilder<T>,T,CriteriaQueryWrapper<T>>
Query builder that returns a custom selection in an
Object
[] as result.
Multiple paths can be selected using addPathToSelection(String...)
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddPathToSelection
(String... path) setToManyPathResultLimit
(int limit) To-Many paths are resolved with their own query and then merged with the main result set.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
-
Method Details
-
addPathToSelection
-
setToManyPathResultLimit
To-Many paths are resolved with their own query and then merged with the main result set. By default, the size of the list of a to-many relation is unlimited. To limit the list (e.g. to prevent OOMs in some use cases), you can set a limit via this setter. If the limit is exceeded, aToManyPathQueryResultOverflowException
is thrown.
-