Package org.dmlite.util.order

Examples of org.dmlite.util.order.PropertyComparator


  {
    Personnes personnesByNom = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("nom", cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      personnesByNom = (Personnes) this.getEntities(criteria);
    }
    catch (final OrderException e)
View Full Code Here


  {
    Personnes personnesByPrenom = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("prenom",
          cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      personnesByPrenom = (Personnes) this.getEntities(criteria);
    }
View Full Code Here

  {
    Personnes personnesByPays = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("pays", cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      personnesByPays = (Personnes) this.getEntities(criteria);
    }
    catch (final OrderException e)
View Full Code Here

  {
    Saisons saisonsByAnnee = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator(
          "annee", cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(
          comparator, ascending);
      saisonsByAnnee = (Saisons) this.getEntities(criteria);
    }
View Full Code Here

  {
    Evenements evenementsByNom = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("nom", cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      evenementsByNom = (Evenements) this.getEntities(criteria);
    }
    catch (final OrderException e)
View Full Code Here

  {
    Evenements evenementsByEndroit = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("endroit",
          cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      evenementsByEndroit = (Evenements) this.getEntities(criteria);
    }
View Full Code Here

  {
    InfosSaison infosSaisonsByNom = null;
    try
    {
      final CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      final PropertyComparator comparator = new PropertyComparator("plaqueUnique",
          cisc);
      final OrderCriteria criteria = OrderCriteria.defineOrder(comparator,
          ascending);
      infosSaisonsByNom = (InfosSaison) this.getEntities(criteria);
    }
View Full Code Here

   */
  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);
    } catch (OrderException e) {
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(
          neighborComparator, ascending);
View Full Code Here

TOP

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

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.