Package org.dmlite.util.order

Examples of org.dmlite.util.order.NeighborComparator


  }

  public Interests getInterestsOrderedByTopic(boolean ascending) {
    Interests orderByTopic = null;
    try {
      NeighborComparator neighborComparator = new NeighborComparator(
          "topic", "name");
      OrderCriteria criteria = OrderCriteria.defineOrder(
          neighborComparator, ascending);
      orderByTopic = (Interests) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here


    Interests orderByUser = null;
    try {
      CompositeComparator compositePropertyComparator = new CompositeComparator(
          new PropertyComparator("lastName"), new PropertyComparator(
              "firstName"));
      NeighborComparator neighborComparator = new NeighborComparator(
          "user", compositePropertyComparator);
      OrderCriteria criteria = OrderCriteria.defineOrder(
          neighborComparator, ascending);
      orderByUser = (Interests) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here

TOP

Related Classes of org.dmlite.util.order.NeighborComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.