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 theParameterCollectorand the given parameter map to theQuery.static booleanhasToManyOuterJoin(jakarta.persistence.criteria.Root<?> root) static booleanhasToManyOuterJoin(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 theParameterCollectorand the given parameter map to theQuery. Parameters are converted to the target type if necessary (and possible).ParameterProviderare also applied if a parameter with such a name exists.
-