java.lang.Object
com.oracle.coherence.spring.data.support.Utils

public class Utils extends Object
General static utilities.
Since:
3.0
Author:
Ryan Lubke
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.tangosol.util.filter.LimitFilter
    configureLimitFilter(org.springframework.data.domain.Pageable pageable, com.tangosol.util.Filter filter)
    Configure a LimitFilter based on the provided Pageable.
    static <T> com.tangosol.util.function.Remote.Comparator<? super T>
    toComparator(org.springframework.data.domain.Sort sort)
    Convert Spring Sort to Remote.Comparator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • toComparator

      @Nullable public static <T> com.tangosol.util.function.Remote.Comparator<? super T> toComparator(@NonNull org.springframework.data.domain.Sort sort)
      Convert Spring Sort to Remote.Comparator.
      Type Parameters:
      T - the entity type
      Parameters:
      sort - the spring sort configuration
      Returns:
      a Remote.Comparator based on the provided Sort
    • configureLimitFilter

      @Nullable public static com.tangosol.util.filter.LimitFilter configureLimitFilter(org.springframework.data.domain.Pageable pageable, com.tangosol.util.Filter filter)
      Configure a LimitFilter based on the provided Pageable.
      Parameters:
      pageable - the Pageable to configure
      filter - the Filter to be limited
      Returns:
      the configured LimitFilter or null if Pageable.isPaged() is false