Class LoaderHelper

java.lang.Object
io.jmix.core.impl.repository.query.utils.LoaderHelper

public class LoaderHelper extends Object
Utility class contains common methods to apply and process Spring Data repositories special query parameters and annotations.
  • 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

      public static Sort springToJmixSort(@Nullable org.springframework.data.domain.Sort sort)
    • jmixToSpringSort

      public static org.springframework.data.domain.Sort jmixToSpringSort(@Nullable Sort sort)
    • parseHint

      public static Serializable parseHint(String name, Serializable value)
      Parses string value to boolean for known jmix hints.
      Returns:
      boolean representation or the same value if hint is unknown