/** * Set the last order specification of this query node to ascending/descending * @see OrderSpec#setAscending(boolean) * * @param value <code>true</code> for ascending and <code>false</code> for * descending. * @throws IllegalStateException if no order specification is set */ public void setAscending(boolean value) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setAscending(value); }
/** * Set the last order specification of this query node to ascending/descending * @see OrderSpec#setAscending(boolean) * * @param value <code>true</code> for ascending and <code>false</code> for * descending. * @throws IllegalStateException if no order specification is set */ public void setAscending(boolean value) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setAscending(value); }
public Object visit(ASTDescendingOrderSpec node, Object data) { OrderQueryNode.OrderSpec spec = (OrderQueryNode.OrderSpec) data; spec.setAscending(false); return data; }
public Object visit(ASTDescendingOrderSpec node, Object data) { OrderQueryNode.OrderSpec spec = (OrderQueryNode.OrderSpec) data; spec.setAscending(false); return data; }