Package org.dmlite.util.order

Examples of org.dmlite.util.order.CaseInsensitiveStringComparator


   * @return destination entities ordered by the code property
   */
  public IOrderedEntities<T> getOrderByCode() {
    IOrderedEntities orderByCode = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<T> propertyComparator = new PropertyComparator<T>(
          "code", cisc);
      OrderCriteria<T> criteria = OrderCriteria
          .defineOrder(propertyComparator);
      orderByCode = (IOrderedEntities) getEntities(criteria);
View Full Code Here


  }

  public Blogs getBlogsOrderedByName() {
    Blogs order = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<Blog> comparator = new PropertyComparator<Blog>("name", cisc);
      OrderCriteria<Blog> criteria = OrderCriteria.defineOrder(comparator);
      order = (Blogs) getEntities(criteria);
    } catch (OrderException e) {
      log
View Full Code Here

   * @return ordered presentations
   */
  public Presentations getPresentationsOrderedByTitle() {
    Presentations orderByTitle = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<Presentation> titleComparator = new PropertyComparator<Presentation>(
          "title", cisc);
      OrderCriteria<Presentation> criteria = OrderCriteria.defineOrder(titleComparator);
      orderByTitle = (Presentations) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here

   * @return ordered projects
   */
  public Projects getProjectsOrderedByName() {
    Projects orderByName = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<Project> nameComparator = new PropertyComparator<Project>("name",
          cisc);
      OrderCriteria<Project> criteria = OrderCriteria.defineOrder(nameComparator);
      orderByName = (Projects) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here

   * @return ordered spirals
   */
  public Spirals getSpiralsOrderedByCode() {
    Spirals orderByCode = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<Spiral> nameComparator = new PropertyComparator<Spiral>("code",
          cisc);
      OrderCriteria<Spiral> criteria = OrderCriteria.defineOrder(nameComparator);
      orderByCode = (Spirals) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here

   * @return ordered spirals
   */
  public Spirals getSpiralsOrderedByName() {
    Spirals orderByName = null;
    try {
      CaseInsensitiveStringComparator cisc = new CaseInsensitiveStringComparator();
      PropertyComparator<Spiral> nameComparator = new PropertyComparator<Spiral>("name",
          cisc);
      OrderCriteria<Spiral> criteria = OrderCriteria.defineOrder(nameComparator);
      orderByName = (Spirals) getEntities(criteria);
    } catch (OrderException e) {
View Full Code Here

TOP

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

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.