Class EntityComparator

java.lang.Object
ch.tocco.nice2.persist.core.api.util.EntityComparator
All Implemented Interfaces:
Comparator<Entity>

@Deprecated public class EntityComparator extends Object implements Comparator<Entity>
Deprecated.
try to sort on the database whenever possible, refer to methods in EntityModelUtils
Comparator providing an ordering for field values for entities (based on the default comparator of its type).
Usable to sort an entity list using the ValueSortedEntityList.
See Also:
  • Constructor Details

    • EntityComparator

      public EntityComparator(String orderBy)
      Deprecated.
      Parameters:
      orderBy - commaseparated string of fields or relations describing the ordering, based on the commonly known syntax of the PersistQL, e.g. "lastname,relAddress.street"
  • Method Details