类 Order

  • 所有已实现的接口:
    Serializable

    public class Order
    extends Object
    implements Serializable
    Represents an ordering imposed upon the results of a Criteria
    作者:
    Gavin King, Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
    另请参阅:
    序列化表格
    • 方法详细资料

      • asc

        public static Order asc​(String propertyName)
        Ascending order
        参数:
        propertyName - The property to order on
        返回:
        The build Order instance
      • desc

        public static Order desc​(String propertyName)
        Descending order.
        参数:
        propertyName - The property to order on
        返回:
        The build Order instance
      • ignoreCase

        public Order ignoreCase()
        Should this ordering ignore case? Has no effect on non-character properties.
        返回:
        this, for method chaining
      • nulls

        public Order nulls​(NullPrecedence nullPrecedence)
        Defines precedence for nulls.
        参数:
        nullPrecedence - The null precedence to use
        返回:
        this, for method chaining
      • getPropertyName

        public String getPropertyName()
      • isAscending

        public boolean isAscending()
      • isIgnoreCase

        public boolean isIgnoreCase()
      • toSqlString

        public String toSqlString​(Criteria criteria,
                                  CriteriaQuery criteriaQuery)
        Render the SQL fragment
        参数:
        criteria - The criteria
        criteriaQuery - The overall query
        返回:
        The ORDER BY fragment for this ordering