ORDER BY clause allows the objects or values that are returned by the
query to be ordered.
BNF: orderby_clause ::= ORDER BY orderby_item {, orderby_item}*
OrderByClause
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ORDER_BY_ITEMS_LIST
Notify the list of |
| Access | Constructor and Description |
|---|---|
| public | OrderByClauseStateObject(SelectStatementStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public OrderByItemStateObject | |
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe ascending order orderingOverrides org. Implements org. ORDER BY item to this clause.
|
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe child paths)StateObject to become a child of this one
return The given itemOverrides org. Implements org. ORDER BY item to this clause.
|
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe identification variable or the result variable variable)Overrides org. Implements org. ORDER BY item to this clause.
|
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe identification variable or the result variable path, OrderByItem.The ascending order orderingAdds a new |
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe identification variable or the result variable variable)Adds a new |
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe identification variable or the result variable variable)Adds a new |
| public OrderByItemStateObject | Returns: The newly addedOrderByItemStateObjectThe paths or the item paths, OrderByItem.The ascending order orderingAdds a new |
| public OrderByClause | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public SelectStatementStateObject | getParent()
Overrides org. Implements org. StateObject.
|
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| protected String | listName()
Implements abstract org. |
| public void | parse(String
The portion of the query to parse jpqlFragment)Parses the given JPQL fragment, which represents either a single or many ordering items, the
fragment will be parsed and converted into |
| public void | setExpression(OrderByClause
The expression)parsed object representing an ORDER
BY clauseKeeps a reference of the |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| ORDER_BY_ITEMS_LIST | back to summary |
|---|---|
| public static final String ORDER_BY_ITEMS_LIST Notify the list of | |
| OrderByClauseStateObject | back to summary |
|---|---|
| public OrderByClauseStateObject(SelectStatementStateObject parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addItem | back to summary |
|---|---|
| public OrderByItemStateObject addItem() Adds a new
| |
| addItem | back to summary |
|---|---|
| public OrderByItemStateObject addItem(OrderByItem. Overrides org. Implements org. Adds a new
| |
| addItem | back to summary |
|---|---|
| public OrderByItemStateObject addItem(String... paths) Overrides org. Implements org. Adds a new
| |
| addItem | back to summary |
|---|---|
| public OrderByItemStateObject addItem(String variable) Overrides org. Implements org. Adds a new
| |
| addItem | back to summary |
|---|---|
| public OrderByItemStateObject addItem(String path, OrderByItem. Adds a new
| |
| addItemAsc | back to summary |
|---|---|
| public OrderByItemStateObject addItemAsc(String variable) Adds a new
| |
| addItemDesc | back to summary |
|---|---|
| public OrderByItemStateObject addItemDesc(String variable) Adds a new
| |
| addOrderByItem | back to summary |
|---|---|
| public OrderByItemStateObject addOrderByItem(String[] paths, OrderByItem. Adds a new
| |
| getExpression | back to summary |
|---|---|
| public OrderByClause getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getParent | back to summary |
|---|---|
| public SelectStatementStateObject getParent() Overrides org. Implements org. Doc from org. Returns the parent of this
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| listName | back to summary |
|---|---|
| protected String listName() Implements abstract org. Doc from org. Returns the name that is uniquely identifying the list. | |
| parse | back to summary |
|---|---|
| public void parse(String jpqlFragment) Parses the given JPQL fragment, which represents either a single or many ordering items, the
fragment will be parsed and converted into
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(OrderByClause expression) Keeps a reference of the
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |