/** * Set the function of the last order specification of this query node. * @see OrderSpec#setFunction(String) * * @param name a function name * @throws IllegalStateException if no order specification is set */ public void setFunction(String name) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setFunction(name); }
/** * Set the function of the last order specification of this query node. * @see OrderSpec#setFunction(String) * * @param name a function name * @throws IllegalStateException if no order specification is set */ public void setFunction(String name) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setFunction(name); }