Class LoaderHelper
java.lang.Object
io.jmix.core.impl.repository.query.utils.LoaderHelper
Utility class contains common methods to apply and process Spring Data repositories special query parameters and annotations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FluentLoader.ByCondition<T>
applyPageableForConditionLoader
(FluentLoader.ByCondition<T> loader, org.springframework.data.domain.Pageable pageable) static void
applyPageableForLoadContext
(LoadContext<?> loadContext, org.springframework.data.domain.Pageable pageable) static <T> FluentLoader.ByQuery<T>
applyPageableForQueryLoader
(FluentLoader.ByQuery<T> loader, org.springframework.data.domain.Pageable pageable) static org.springframework.data.domain.Sort
jmixToSpringSort
(Sort sort) static Serializable
parseHint
(String name, Serializable value) Parses string value to boolean for known jmix hints.static Sort
springToJmixSort
(org.springframework.data.domain.Sort sort)
-
Constructor Details
-
LoaderHelper
public LoaderHelper()
-
-
Method Details
-
applyPageableForLoadContext
public static void applyPageableForLoadContext(LoadContext<?> loadContext, org.springframework.data.domain.Pageable pageable) -
applyPageableForConditionLoader
public static <T> FluentLoader.ByCondition<T> applyPageableForConditionLoader(FluentLoader.ByCondition<T> loader, org.springframework.data.domain.Pageable pageable) -
applyPageableForQueryLoader
public static <T> FluentLoader.ByQuery<T> applyPageableForQueryLoader(FluentLoader.ByQuery<T> loader, org.springframework.data.domain.Pageable pageable) -
springToJmixSort
-
jmixToSpringSort
-
parseHint
Parses string value to boolean for known jmix hints.- Returns:
- boolean representation or the same value if hint is unknown
-