Class QueryUtils
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.QueryUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.hibernate.query.Query
<T> applyParametersToQuery
(org.hibernate.query.Query<T> query, Map<String, Object> parameters, ParameterCollector collector, Map<String, ParameterProvider<?>> parameterProviders, TypeManager typeManager, CriteriaBuilderWrapper criteriaBuilder) Applies the parameters contained in theParameterCollector
and the given parameter map to theQuery
.static boolean
hasToManyOuterJoin
(jakarta.persistence.criteria.Root<?> root) static boolean
hasToManyOuterJoin
(Set<jakarta.persistence.criteria.Root<?>> roots)
-
Method Details
-
hasToManyOuterJoin
-
hasToManyOuterJoin
public static boolean hasToManyOuterJoin(jakarta.persistence.criteria.Root<?> root) -
applyParametersToQuery
public static <T> org.hibernate.query.Query<T> applyParametersToQuery(org.hibernate.query.Query<T> query, Map<String, Object> parameters, ParameterCollector collector, Map<String, ParameterProvider<?>> parameterProviders, TypeManager typeManager, CriteriaBuilderWrapper criteriaBuilder) Applies the parameters contained in theParameterCollector
and the given parameter map to theQuery
. Parameters are converted to the target type if necessary (and possible).ParameterProvider
are also applied if a parameter with such a name exists.
-