Tabnine Logo
Sort$Order.ignoreCase
Code IndexAdd Tabnine to your IDE (free)

How to use
ignoreCase
method
in
org.springframework.data.domain.Sort$Order

Best Java code snippets using org.springframework.data.domain.Sort$Order.ignoreCase (Showing top 4 results out of 315)

origin: org.ligoj.bootstrap/bootstrap-business

if (ormProperty.indexOf('.') == -1) {
  sort = Sort.by(new Sort.Order(Direction.valueOf(direction.toUpperCase(Locale.ENGLISH)), ormProperty)
      .ignoreCase());
} else {
  sort = JpaSort.unsafe(Direction.valueOf(direction.toUpperCase(Locale.ENGLISH)),
origin: wu560130911/MultimediaDesktop

  public static Sort covertSortDto(SortDto sortDto) {

    if (sortDto == null || sortDto.getOrders() == null
        || sortDto.getOrders().isEmpty()) {
      return null;
    }
    List<Order> orders = new ArrayList<>();

    for (OrderDto orderdto : sortDto.getOrders()) {
      Order order = new Order(Sort.Direction.fromString(orderdto
          .getDirection().name()), orderdto.getProperty());
      if (orderdto.isIgnoreCase()) {
        order = order.ignoreCase();
      }
      orders.add(order);
    }

    return new Sort(orders);
  }
}
origin: org.bremersee/bremersee-comparator

/**
 * Transforms the comparator item into a {@code Sort.Order} object.
 * 
 * @param comparatorItem
 *            the comparator item
 * @return the sort object
 */
public static Sort.Order toSortOrder(ComparatorItem comparatorItem) {
  if (comparatorItem == null || comparatorItem.getField() == null
      || comparatorItem.getField().trim().length() == 0) {
    return null;
  }
  Sort.Direction direction = comparatorItem.isAsc() ? Sort.Direction.ASC : Sort.Direction.DESC;
  Sort.NullHandling nullHandlingHint = comparatorItem.isNullIsFirst() ? Sort.NullHandling.NULLS_FIRST
      : Sort.NullHandling.NULLS_LAST;
  Sort.Order order = new Sort.Order(direction, comparatorItem.getField(), nullHandlingHint);
  if (comparatorItem.isIgnoreCase()) {
    return order.ignoreCase();
  }
  return order;
}
origin: org.bitbucket.askllc.fermenter.stout/stout-spring

  public static final Order mapToOrder(OrderWrapper orderWrapper) {
    Direction springDirection = Direction.fromString(orderWrapper.getDirection());

    Order order = null;
    if (orderWrapper.isIgnoreCase()) {
      order = new Order(springDirection, orderWrapper.getProperty()).ignoreCase();
    } else {
      order = new Order(springDirection, orderWrapper.getProperty());
    }
    return order;
  }
}
org.springframework.data.domainSort$OrderignoreCase

Javadoc

Returns a new Order with case insensitive sorting enabled.

Popular methods of Sort$Order

  • getProperty
    Returns the property to order for.
  • getDirection
    Returns the order the property shall be sorted for.
  • <init>
  • isAscending
    Returns whether sorting for this property shall be ascending.
  • isIgnoreCase
  • getNullHandling
  • by
  • desc
    Creates a new Order instance. Takes a single property. Direction is Direction#ASC and NullHandling N
  • with
  • asc
    Creates a new Order instance. Takes a single property. Direction is Direction#ASC and NullHandling N
  • isDescending
    Returns whether sorting for this property shall be descending.
  • withProperty
  • isDescending,
  • withProperty

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Reference (javax.naming)
  • JButton (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now