Top Description Methods
javax.persistence.criteria

public Interface Order


An object that defines an ordering over the query results.
Since
Java Persistence 2.0

Method Summary

Modifier and TypeMethod and Description
public Expression<?>

Returns:

expression used for ordering
getExpression
()

Return the expression that is used for ordering.

public boolean

Returns:

boolean indicating whether ordering is ascending
isAscending
()

Whether ascending ordering is in effect.

public Order

Returns:

a new Order instance with the reversed ordering
reverse
()

Switch the ordering.

Method Detail

getExpressionback to summary
public Expression<?> getExpression()

Return the expression that is used for ordering.

Returns:Expression<?>

expression used for ordering

isAscendingback to summary
public boolean isAscending()

Whether ascending ordering is in effect.

Returns:boolean

boolean indicating whether ordering is ascending

reverseback to summary
public Order reverse()

Switch the ordering.

Returns:Order

a new Order instance with the reversed ordering