com.gisgraphy.hibernate.criterion

## Class ProjectionOrder

- java.lang.Object
- - org.hibernate.criterion.Order
  - - com.gisgraphy.hibernate.criterion.ProjectionOrder

- All Implemented Interfaces:
    Serializable

      public class ProjectionOrder
      extends org.hibernate.criterion.Order

  A criteria that sort by an already added projection
  Author:
    David Masclet
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProjectionOrder(String aliasName)`
    `ProjectionOrder(String aliasName, boolean ascending)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)`

    - ### Methods inherited from class org.hibernate.criterion.Order

      `asc, desc, ignoreCase, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ProjectionOrder

          public ProjectionOrder(String aliasName,
                         boolean ascending)

      Parameters:
        `aliasName` - The name of the alias we'd like to sort
        `ascending` - Whether we sort Ascending or descending

    - #### ProjectionOrder

          public ProjectionOrder(String aliasName)

      Parameters:
        `aliasName` - The name of the alias we'd like to sort, default sorting is ascending

  - ### Method Detail

    - #### toSqlString

          public String toSqlString(org.hibernate.Criteria criteria,
                           org.hibernate.criterion.CriteriaQuery criteriaQuery)
                             throws org.hibernate.HibernateException

      Overrides:
        `toSqlString` in class `org.hibernate.criterion.Order`
      Throws:
        `org.hibernate.HibernateException`

Copyright © 2015. All rights reserved.