Order

public class Order implements Serializable

Represents an order in a query

Constructors

Order

public Order(String field)

Creates order, with ascending direction.

Parameters:
  • field – field to order results by

Order

public Order(String field, String direction)

Creates order.

Parameters:
  • field – field to order results by
  • directionjava.lang.String representation of a direction

Order

public Order(String field, Direction direction)

Creates order.

Parameters:
  • field – field to order results by
  • direction – direction of the order

Methods

getDirection

public Direction getDirection()

getField

public String getField()

toString

public String toString()