Package org.dmlite.util.order

Examples of org.dmlite.util.order.CompositeComparator


   * @return ordered members
   */
  public Members getMembersOrderedByLastFirstName(boolean ascending) {
    Members orderByLastFirstName = null;
    try {
      CompositeComparator compositePropertyComparator = new CompositeComparator(
          new PropertyComparator("lastName"), new PropertyComparator(
              "firstName"));
      OrderCriteria criteria = OrderCriteria.defineOrder(
          compositePropertyComparator, ascending);
      orderByLastFirstName = (Members) getEntities(criteria);
View Full Code Here


  }

  public Interests getInterestsOrderedByUser(boolean ascending) {
    Interests orderByUser = null;
    try {
      CompositeComparator compositePropertyComparator = new CompositeComparator(
          new PropertyComparator("lastName"), new PropertyComparator(
              "firstName"));
      NeighborComparator neighborComparator = new NeighborComparator(
          "user", compositePropertyComparator);
      OrderCriteria criteria = OrderCriteria.defineOrder(
View Full Code Here

TOP

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

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.